hi
help!

how make child&popup style window??
i want no ACTIVATE window

sorry,i dont speak english

look image
Posted on 2003-07-23 08:31:39 by playh
Why you create combo box with WS_EX_TOOLWINDOW extended style. Better try 0. Unfortunately I have not use MASM, so I can't compile your code to test this.

BTW: Good work!!! :alright:
Regards.
Posted on 2003-07-23 08:54:21 by JohnFound
playh: remove WS_CAPTION | WS_SYSMENU from the resource if you want
to have a window like below

but you must deal with moving/closing the window :)
Posted on 2003-07-23 08:54:52 by TBD
hi
i mean how it work
look image again :grin:
thanks
Posted on 2003-07-24 04:51:52 by playh
To playh:

Yes, I think I understand you first time. :)
Your problem is that when you try to open your combo box, the parent window loose focus and become inactive. Right?

So, did you try to remove WS_EX_TOOLWINDOW?
Posted on 2003-07-24 05:28:38 by JohnFound
playh,

see in BOLD

.elseif uMsg == WM_MYCOMBOSHOW

mov pt.x,0
mov pt.y,0
invoke GetClientRect,lParam, ADDR rect
invoke ClientToScreen,lParam,ADDR pt
mov eax,pt.x
mov eax,pt.y
mov ecx,rect.bottom
add pt.y,ecx

mov eax,expandint
mov eax,15
imul eax,expandint
sub eax,expandint
add eax,2

invoke


SetWindowPos,hWin,HWND_NOTOPMOST,pt.x,pt.y,rect.right,eax,SWP_NOZORDER Or SWP_NOACTIVATE or SWP_SHOWWINDOW


Regards,

akyprian
Posted on 2003-07-24 06:10:54 by akyprian