Message 1 of 2
Getting WM_LBUTTONUP, WM_LBUTTONDOWN etc messages in a custom dlgproc
Not applicable
07-23-2008
05:00 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have tried all sorts of things, but for the life of me i can't get max to pass me these winapi messages.
I am working on a custom map type, where the UI is kinda interactive, so i have to be able to track where the user clicks. The UI is created using the:
IAutoMParamDlg* masterDlg = myMapDesc.CreateParamDlgs(hwMtlEdit, imp, this);
call in CreateParamDlg. I suspect that that's where the problem is. I attach my dlgProc properly:
mymap_param_blk.SetUserDlgProc(dlgProc);
and i get all sorts of messages including WM_INITDIALOG, WM_PAINT, WM_COMMANDS, but not the mouse down / up ...
Anyone know why? or how i could trick it to pass those messages to me? I am going crazy already, i am sure it's possible.
cheers,
laszlo
I am working on a custom map type, where the UI is kinda interactive, so i have to be able to track where the user clicks. The UI is created using the:
IAutoMParamDlg* masterDlg = myMapDesc.CreateParamDlgs(hwMtlEdit, imp, this);
call in CreateParamDlg. I suspect that that's where the problem is. I attach my dlgProc properly:
mymap_param_blk.SetUserDlgProc(dlgProc);
and i get all sorts of messages including WM_INITDIALOG, WM_PAINT, WM_COMMANDS, but not the mouse down / up ...
Anyone know why? or how i could trick it to pass those messages to me? I am going crazy already, i am sure it's possible.
cheers,
laszlo