flat assembler
Message board for the users of flat assembler.
Index
> Windows > ?? Moving DialogBox Without Caption ?? |
Author |
|
Fanael 30 Aug 2009, 22:51
You can pass it to DefWindowProc - it should work.
|
|||
30 Aug 2009, 22:51 |
|
cod3b453 31 Aug 2009, 08:47
You should be able to do it by capturing WM_LBUTTONDOWN and then doing:
Code: ... .lbuttondown: invoke ReleaseCapture invoke SendMessage,[hWnd],WM_NCLBUTTONDOWN,HTCAPTION,NULL ... |
|||
31 Aug 2009, 08:47 |
|
sam_des 31 Aug 2009, 18:27
Thanks cod3b453
I just used WM_NCHITTEST insted of WM_LBUTTONDOWN. Code: .elseif [umsg] = WM_NCHITTEST ;---------------------------------------------------------------------------------- mov eax,[lp] push eax and eax,0ffffh mov [pt.x],eax pop eax shr eax,16 and eax,0ffffh mov [pt.y],eax invoke ScreenToClient,[ghMove],addr pt invoke PtInRect,gRectMove,[pt.x],[pt.y] .if eax invoke SendMessage,[hdlg],WM_NCLBUTTONDOWN,HTCAPTION,NULL .endif xor eax,eax Now it's working just fine. Thanks again... regards, sam_des |
|||
31 Aug 2009, 18:27 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.