-
September 14th, 2012, 12:32 AM
#1
WTL. MDI - close file
I added code in MainFrm for file closing like existing code for new file. But it does not work. What did I do wrong?
Code:
COMMAND_ID_HANDLER(ID_FILE_CLOSE, OnFileClose)
LPRESULT OnFileClose(WORD, WORD, HWND, BOOL&)
{
return 0;
}
-
September 14th, 2012, 12:51 AM
#2
Re: WTL. MDI - close file
In the above exemple you just handle a command message and do nothing in the handler function.
What do you expect to happen?
-
September 14th, 2012, 12:57 AM
#3
Re: WTL. MDI - close file
I need to get method call when file close event happens. Currently breakpoint does not work in this method.
-
September 14th, 2012, 01:36 AM
#4
Re: WTL. MDI - close file
Originally Posted by user008
Code:
LPRESULT OnFileClose(WORD, WORD, HWND, BOOL&)
OnFileClose has to be a class member function and yours is not.
-
September 14th, 2012, 04:40 AM
#5
Re: WTL. MDI - close file
Originally Posted by ovidiucucu
OnFileClose has to be a class member function and yours is not.
Why not?
Code:
class CMainFrame: ...
{
...
LPRESULT OnFileClose(WORD, WORD, HWND, BOOL&)
{
...
}
...
}
-
September 21st, 2012, 10:30 PM
#6
Re: WTL. MDI - close file
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|