Re: Derived controls in a dynamical dialog

Tech-Archive recommends: Fix windows errors by optimizing your registry



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
.



Relevant Pages

  • Re: Query on dialog box
    ... BOOL CALLBACK AdPropPageProc(HWND hDlg,UINT uMsg,WPARAM wParam,LPARAM ... BOOL CALLBACK EditWmProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM ...
    (microsoft.public.win32.programmer.ui)
  • Re: Win32 Listview messes up
    ... LRESULT CALLBACK UI_Proc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM ...
    (microsoft.public.win32.programmer.ui)