Or use the WM_SETCURSOR message with corr. params
------------------
[email protected]
Announcement
Collapse
No announcement yet.
BN_CLICKED on Bitmap?
Collapse
X
-
Scott,
With standard SDK style code, just trap the %WM_LBUTTONDOWN message and
Post your close message.
Happy July 4th Day!
Jules
Leave a comment:
-
Got it:
Code:Control Add Image, hDlg, %ID_IMAGE1,"#2101",-1,-1,ImagexPos, ImageYPos,%SS_NOTIFY 'In Dialog Proc Case %WM_COMMAND Select Case LoWrd(CbWparam) Case %ID_IMAGE1 If CBCTLMSG = %STN_CLICKED Then Dialog End CbHndl,1 End Select
Scott
mailto:[email protected][email protected]</A>
MCSE, MCP+Internet
Leave a comment:
-
BN_CLICKED on Bitmap?
If I have a bitmap in my application and the user clicks on it, I'd like the dialog to go away...
How would one do that?
This is a happy little advertisement dialog I'm working on, I'll post the source/project when it's done..
When user clicks this control I want the dialog to go bye bye.
Code:Control Add Image, hDlg, %ID_IMAGE1,"#2101",-1,-1,ImagexPos, ImageYPos 'In the DialogProc this is what I was thinking: Case %ID_IMAGE1 If CbLparam = %BN_CLICKED Then Dialog End hDlg,1
Scott
mailto:[email protected][email protected]</A>
MCSE, MCP+InternetTags: None
Leave a comment: