WM_COMMAND custom message ID
-
Hello, I would like for my DialogBar class to update all it's values from my CDocument class. I've been told I need to add a new command ID and use WM_COMMAND. I know how to set up the DialogBar side of things, but I don't know how to send the command from the CDocument class. Any help or pointers to articles? thanks! JennyP
-
Hello, I would like for my DialogBar class to update all it's values from my CDocument class. I've been told I need to add a new command ID and use WM_COMMAND. I know how to set up the DialogBar side of things, but I don't know how to send the command from the CDocument class. Any help or pointers to articles? thanks! JennyP
To send a WM_COMMAND message to your dialog bar object I think it would look something like: // Somewhere inside CDocument
((CMainFrame*)AfxGetMainWnd())->m_MyDlgBar.SendMessage(WM_COMMAND);
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
-
Hello, I would like for my DialogBar class to update all it's values from my CDocument class. I've been told I need to add a new command ID and use WM_COMMAND. I know how to set up the DialogBar side of things, but I don't know how to send the command from the CDocument class. Any help or pointers to articles? thanks! JennyP
JennyP wrote: I've been told I need to add a new command ID and use WM_COMMAND I don' think you need new command ID. Rather, you should provide ON_UPDATE_CMD_UI handlers for controls hosted in dialog bar using their control IDs. Tomasz Sowinski -- http://www.shooltz.com
"Yields falsehood when preceded by its quotation" yields falsehood when preceded by its quotation.