windows_programming_notes.nbk: Home | Index | Next Page: how to subclass control not in a dialog | Previous Page: how to subclass a dialog control
The following should be included in the dialog box message handler:
case WM_INITDIALOG: handle = GetDlgItem(hwnd, ID_POINTNUMBER); SetWindowLong(handle, GWL_USERDATA, (LPARAM)SubclassWindow(handle, EditControlSubclass)); dbgprintf("handle of editcontrol = %08X", handle); case WM_DESTROY: // unsubclass the edit control SetWindowLong(point_edit_handle, GWL_WNDPROC, (LONG)GetWindowLong(point_edit_handle, GWL_USERDATA)); return TRUE;
windows_programming_notes.nbk: Home | Index | Next Page: how to subclass control not in a dialog | Previous Page: how to subclass a dialog control
Notebook exported on Monday, 7 July 2008, 18:56:50 PM Eastern Daylight Time