Announcement

Collapse
No announcement yet.

CBHNDL same as hDlg?

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

    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).]

    Egbert Zijlema, journalist and programmer (zijlema at basicguru dot eu)
    http://zijlema.basicguru.eu
    *** Opinions expressed here are not necessarily untrue ***

    #2
    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).]
    "Not my circus, not my monkeys."

    Comment


      #3
      Cristal clear. Thanks, Eric!

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

      Egbert Zijlema, journalist and programmer (zijlema at basicguru dot eu)
      http://zijlema.basicguru.eu
      *** Opinions expressed here are not necessarily untrue ***

      Comment

      Working...
      X
      😀
      🥰
      🤢
      😎
      😡
      👍
      👎