Message 1 of 5
WM_NOTIFY
Not applicable
07-21-2007
10:01 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
For a new project I subclassed an existing dialog procedure (Find dialog), see code below for windproc:
BOOL CALLBACK RegFindDialogProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
switch(uMsg) {
case WM_NOTIFY:
if (((LPNMHDR)lParam)->idFrom == 1005) {
......
}
break;
The QM_NOTIFY message is received normally, but I expected to have the dialog control ID (1005) as a member of NMHDR struct, but when the button with ID 1005 is pressed and released, the procedure does not trap it. In fact, I can make nothing of the codes received with this message.
I checked for the reception of the old 16-bit WM_COMMAND, but it is not there, just the WM_NOTIFY.
Can it be that AutoCAD uses a non standard message coding scheme?
Kind regards
BOOL CALLBACK RegFindDialogProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
switch(uMsg) {
case WM_NOTIFY:
if (((LPNMHDR)lParam)->idFrom == 1005) {
......
}
break;
The QM_NOTIFY message is received normally, but I expected to have the dialog control ID (1005) as a member of NMHDR struct, but when the button with ID 1005 is pressed and released, the procedure does not trap it. In fact, I can make nothing of the codes received with this message.
I checked for the reception of the old 16-bit WM_COMMAND, but it is not there, just the WM_NOTIFY.
Can it be that AutoCAD uses a non standard message coding scheme?
Kind regards