Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Drag dialog without title bar
#1
Hi,

In the following code, the dialog's title bar is hidden
There is an easy way to achieve drag on the client area?

Thanks in advance for any advice and help
david

Macro Macro7
Code:
Copy      Help
str dd=
;BEGIN DIALOG
;0 "" 0x90080AC8 0x0 0 0 224 136 "Dialog" "4"
;3 Edit 0x54231044 0x200 8 8 160 96 ""
;1 Button 0x54030001 0x4 116 116 48 14 "OK"
;2 Button 0x54030000 0x4 168 116 48 14 "Cancel"
;END DIALOG
;DIALOG EDITOR: "" 0x2040C02 "*" "" "" ""

str controls = "3"
str e3
if(!ShowDialog(dd &sub.DlgProc &controls)) ret


#sub DlgProc
function# hDlg message wParam lParam

sel message
,case WM_INITDIALOG
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case IDOK
,case IDCANCEL
ret 1


Messages In This Thread
Drag dialog without title bar - by Davider - 09-01-2022, 09:57 PM
RE: Drag dialog without title bar - by Kevin - 09-01-2022, 11:21 PM
RE: Drag dialog without title bar - by Davider - 09-02-2022, 12:55 AM
RE: Drag dialog without title bar - by Davider - 12-07-2022, 04:57 AM
RE: Drag dialog without title bar - by Kevin - 12-08-2022, 01:58 AM
RE: Drag dialog without title bar - by Davider - 12-08-2022, 02:21 AM
RE: Drag dialog without title bar - by Davider - 01-04-2023, 12:28 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)