Skip to main content
GameDev.net gamedev.net
🔒 Locked

subclass control in dialog

Started by derek7 Jul 2, 2006 at 6:11 AM 0 replies 400+ views
Original Post
derek7
derek7
I wanna subclass sub control in a dialog without DDX_CONTROL support. how to do it?
Evil Steve
Evil Steve
I have no idea what DDX_CONTROL is, but surely you just subclass it the same way as normal? Just call SetWindowLong(GetDlgItem(hDlg, IDC_CONTROL), GWL_WNDPROC, YourNewWndProc); and in YourNewWndProc, make sure you use CallWndProc (Or wehatever the function is) to call the original wndproc (From GetWindowLong(hWndConrol, GWL_WNDPROC))

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.