My main GUI class is derived from CDialogEx, and I've implemented OnMove() a OnMoving() in my class with the same signature as described in the documentation. However, those two functions are not being called when the G is moved.
Of course, right after I posted that message, I found the solution. :) My dialog class didn't have WM_MOVE() and WM_MOVING() in its message map.
MFC is frustrating sometimes.. One reason is that it's inconsistent - Some message handlers require a message map entry, but others don't because they're
implemented by overridden class methods.
On 10/26/2011 6:10 PM, Nightfox wrote:
Of course, right after I posted that message, I found the solution. :) My dialog class didn't have WM_MOVE() and WM_MOVING() in its message map.
MFC is frustrating sometimes.. One reason is that it's inconsistent - Some message handlers require a message map entry, but others don't because they're implemented by overridden class methods.
.Net (C# or VB) and winforms is easier.. ;)
Sysop: | Eric Oulashin |
---|---|
Location: | Beaverton, Oregon, USA |
Users: | 104 |
Nodes: | 16 (0 / 16) |
Uptime: | 03:43:53 |
Calls: | 5,855 |
Calls today: | 2 |
Files: | 8,496 |
D/L today: |
18 files (3,138K bytes) |
Messages: | 343,852 |