I'd like to create various versions of controls that send their messages to the WM_NOTIFY event. I know that an individual control can reference it's own callback but generally only the WM_COMMAND level messages are passed there.
The code below from an old calendar example by Borge is giving me an idea that many of you probably figured out a long time ago.
The calendar control specifically calls the same dialog procedure as the one specified for the dialog.
Is it possible to just as easily call a dialog procedure that is attached to any number of other hidden dialogs and their dialog procedures to process the WM_NOTIFY events for variations of listviews,treeviews and/or calendar controls?
The reason is to keep the WM_NOTIFY small and manageable and related to just one version of the control.
BOB MECHLER
The code below from an old calendar example by Borge is giving me an idea that many of you probably figured out a long time ago.
The calendar control specifically calls the same dialog procedure as the one specified for the dialog.
Is it possible to just as easily call a dialog procedure that is attached to any number of other hidden dialogs and their dialog procedures to process the WM_NOTIFY events for variations of listviews,treeviews and/or calendar controls?
The reason is to keep the WM_NOTIFY small and manageable and related to just one version of the control.
Code:
CONTROL ADD "SysMonthCal32", hDlg, %ID_CALENDAR, "", 6, 26, 340, 190, %WS_CHILD OR _ %WS_TABSTOP OR %WS_VISIBLE, %WS_EX_CLIENTEDGE CALL DlgCallback 'See Commctrl.inc for other useful Constants and Type structures DIALOG SHOW MODAL hDlg CALL DlgCallback
Comment