Re: Derived controls in a dynamical dialog
- From: David Lowndes <DavidL@xxxxxxxxxxxxxxx>
- Date: Tue, 14 Mar 2006 22:13:19 +0000
There is a global variable in the .CPP file defining all activities
about this dynamic dialog
CExListBox listTask;
There are also the following two funcs :
void OnInitDialog(HWND hwndDlg) {
listTask.SubclassWindow(GetDlgItem(hwndDlg,IDC_LISTTASK));
// ... further items...
}
BOOL CALLBACK dlgProc(HWND hwndDlg, UINT message, WPARAM wParam, LPARAM
lParam) {
switch (message) {
case WM_INITDIALOG:
OnInitDialog(hwndDlg);
return TRUE;
}
}
OK, presumably you've established that the sub-class call is being
done?
If you examine the messages for the dialog and list box, do you see
the WM_DRAWITEM messages happening?
Dave
.
- Follow-Ups:
- Re: Derived controls in a dynamical dialog
- From: David Lowndes
- Re: Derived controls in a dynamical dialog
- References:
- Derived controls in a dynamical dialog
- From: Victor
- Re: Derived controls in a dynamical dialog
- From: David Lowndes
- Re: Derived controls in a dynamical dialog
- From: Victor
- Derived controls in a dynamical dialog
- Prev by Date: Re: weird /strange???
- Next by Date: Re: a CWnd derived to which a message can be posted (or sent)
- Previous by thread: Re: Derived controls in a dynamical dialog
- Next by thread: Re: Derived controls in a dynamical dialog
- Index(es):
Relevant Pages
|