Forums before death by AOL, social media and spammers... "We can't have nice things"
|    alt.comp.os.windows-xp    |    Actually wasn't too bad for a M$-OS    |    17,273 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 16,986 of 17,273    |
|    JJ to R.Wieser    |
|    Re: CreateDialog and sending a WM_NOTIFY    |
|    15 Nov 24 21:44:43    |
      XPost: alt.windows7.general, comp.os.ms-windows.programmer.win32       From: jj4public@outlook.com              On Thu, 14 Nov 2024 08:54:14 +0100, R.Wieser wrote:       > Hello all,       >       > Maybe a bit of an esoteric problem, but one I would want to have solved       > nonetheless:       >       > I've got a program which puts up a settings dialog (using CreateDialog).       > From this settings dialog I would like to send notifications (WM_NOTIFY) to       > its parent.       >       > The problem is, the NMHDR structure expects the "idFrom" field (the control       > ID) to be filled in, and I can't find it (IDD_SETTINGS, as provided to the       > CreateDialog call) stored anywhere. :-|       >       > Question:       >       > Is it stored anywhere in the dialog, and if so, where ?              It's stored within each window itself. Window ID is not a dialog-specific       property. It's a property which exist in all windows. But window ID is       mainly used for controls. It's rarely used for non-parented windows.              > Secondary question:       >       > Will using SetWindowLong with the GWL_ID argument on a Dialog window create       > any problems (does anything else use that field) ?       >       > Regards,       > Rudy Wieser              Dialogs use a set of predefined window IDs; at least for OK and Cancel       buttons. Common dialogs use more of them, including controls which are not       buttons. So it's best to avoid using their IDs to avoid disrupting or       unexpectedly triggering the dialog's default behaviour.              --- SoupGate-DOS v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca