Announcement

Collapse
No announcement yet.

BN_CLICKED on Bitmap?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Edwin Knoppert
    replied
    Or use the WM_SETCURSOR message with corr. params

    ------------------
    [email protected]

    Leave a comment:


  • Jules Marchildon
    replied
    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:


  • Scott Turchin
    replied
    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:


  • Scott Turchin
    started a topic BN_CLICKED on Bitmap?

    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+Internet
Working...
X