Home > Software engineering >  Debug how to know when the class member functions which instance objects belong to?
Debug how to know when the class member functions which instance objects belong to?

Time:10-05

When using VS2013 in debugging breakpoints, sometimes don't know is which object the member function; Such as a button DrawItem, because there are a lot of buttons, how to determine the current breakpoints when debugging a member function is to belong to the instance objects; Use the stack can't see which is which

CodePudding user response:

If it is a class member function, not have this pointer?

CodePudding user response:

If the address values not good-looking, you can through the button ID or text GetDlgItemID ()/GetDlgItemText ();

CodePudding user response:

Why don't you by
M_hWnd are the HWND attached to this CWnd.
And
GetParent Retrieves the parent window of CWnd (if any).
?
  • Related