Announcement

Collapse
No announcement yet.

CBHNDL same as hDlg?

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

  • Egbert Zijlema
    replied
    Cristal clear. Thanks, Eric!

    ------------------
    Regards Egbert
    mailto:[email protected][email protected]</A>
    www.basicguru.com/zijlema/

    Leave a comment:


  • Eric Pearson
    replied
    CBHNDL (in a CALLBACK function) returns the handle of the window that sent a message to the function. So if your program only has one dialog, then Yes, CBHNDL will always be the same as the hDlg that was returned by DIALOG NEW.

    But if your program creates more than one dialog (or creates child windows) and you point them toward the same CALLBACK function, the CBHNDL value tells you which dialog sent the message to the function.

    Does that help?

    -- Eric

    ------------------
    Perfect Sync: Perfect Sync Development Tools
    Email: mailto:[email protected][email protected]</A>



    [This message has been edited by Eric Pearson (edited August 20, 2000).]

    Leave a comment:


  • Egbert Zijlema
    started a topic CBHNDL same as hDlg?

    CBHNDL same as hDlg?

    Hi folks,

    In one of my applications CBHNDL has the same value as hDlg (the one in "DIALOG NEW ........... TO hDlg").
    Is this a coincidence? Or am I asking a VSQ? ( = very stupid question)


    ------------------
    Regards Egbert
    mailto:[email protected][email protected]</A>
    www.basicguru.com/zijlema/

    [This message has been edited by Egbert Zijlema (edited August 20, 2000).]
Working...
X
😀
🥰
🤢
😎
😡
👍
👎