OK, I just got this (last Vis studio was V6)
2 Questions, one MFC and one VS
1)How do I add Windows Messages now, do I get to edit the Message block myself, as I can't see a screen for adding them
2) I want to Use MessageBox() in a class I have created to display exceptions, but it doesn't have the HWND of the view class.
I vaguely remember needing to create a MyView pointer, and dynamic_cast it. And then I can get hwnd from the View. Is this correct (and what is the genuine syntax), or is there a better way of displaying a message popup with my exceptions in ?
2 Questions, one MFC and one VS
1)How do I add Windows Messages now, do I get to edit the Message block myself, as I can't see a screen for adding them
2) I want to Use MessageBox() in a class I have created to display exceptions, but it doesn't have the HWND of the view class.
I vaguely remember needing to create a MyView pointer, and dynamic_cast it. And then I can get hwnd from the View. Is this correct (and what is the genuine syntax), or is there a better way of displaying a message popup with my exceptions in ?