Click here to Skip to main content
16,008,490 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralToolBar problem Pin
chen9-May-02 20:51
chen9-May-02 20:51 
GeneralRe: ToolBar problem Pin
Nish Nishant9-May-02 21:46
sitebuilderNish Nishant9-May-02 21:46 
GeneralDraw in MFC Pin
HoldMe9-May-02 19:55
HoldMe9-May-02 19:55 
GeneralRe: Draw in MFC Pin
Mazdak9-May-02 20:02
Mazdak9-May-02 20:02 
GeneralRe: Draw in MFC Pin
Christian Graus9-May-02 19:58
protectorChristian Graus9-May-02 19:58 
GeneralRe: Draw in MFC Pin
Eugene Pustovoyt9-May-02 22:11
Eugene Pustovoyt9-May-02 22:11 
GeneralRe: Draw in MFC Pin
Christian Graus9-May-02 23:13
protectorChristian Graus9-May-02 23:13 
QuestionHow Do I send a window message.... Pin
Baldwin9-May-02 19:38
Baldwin9-May-02 19:38 
How Do I send a window message to another window that I have no source or control over to maximize?

Here is what I have so far.
In PretranslateMessage I
catch the F10 key and
BOOL CTestCapTabDlg::PreTranslateMessage(MSG* pMsg)
{
BOOL bMsgHandled = FALSE;
switch (pMsg->message)
{
case WM_KEYDOWN:
{
switch (pMsg->wParam)
{
case VK_F10:
// It is easy to substitute another key here but should I use SendMessage(WM_MAXIMIZE,...) to send through the pump? break;


I just want to send a meesage to all open windows to maximize.
ENUM windows I understand but I do not know the names or titles (TITLEBAR) captions of the open windows and don't need this information.

Just a plain message to the pump to maximize everything that is open, and has the cap. to maximize.



Best Wishes,
Baldwin
AnswerRe: How Do I send a window message.... Pin
Nish Nishant9-May-02 21:44
sitebuilderNish Nishant9-May-02 21:44 
GeneralRe: How Do I send a window message.... Pin
Baldwin10-May-02 11:58
Baldwin10-May-02 11:58 
GeneralError in Rich edit view Pin
SamirSood9-May-02 18:58
SamirSood9-May-02 18:58 
GeneralRe: Error in Rich edit view Pin
James R. Twine10-May-02 10:06
James R. Twine10-May-02 10:06 
GeneralMFC to dll Pin
Coremn9-May-02 18:15
Coremn9-May-02 18:15 
Generalreal newbie question Pin
9-May-02 17:35
suss9-May-02 17:35 
GeneralRe: real newbie question Pin
Christian Graus9-May-02 17:41
protectorChristian Graus9-May-02 17:41 
GeneralRe: real newbie question Pin
Philip Patrick9-May-02 20:40
professionalPhilip Patrick9-May-02 20:40 
GeneralChanging IE UI ie 1) Sunken Border, 2) Default Scrollbar, 3) Cursor Pin
Varun Shoor9-May-02 14:46
Varun Shoor9-May-02 14:46 
GeneralWarning level 4 = AYEEEE!! Pin
Todd Smith9-May-02 14:18
Todd Smith9-May-02 14:18 
GeneralRe: Warning level 4 = AYEEEE!! Pin
Michael Dunn9-May-02 14:49
sitebuilderMichael Dunn9-May-02 14:49 
GeneralRe: Warning level 4 = AYEEEE!! Pin
Coremn9-May-02 16:40
Coremn9-May-02 16:40 
GeneralRe: Warning level 4 = AYEEEE!! Pin
Maxwell Chen9-May-02 17:02
Maxwell Chen9-May-02 17:02 
GeneralRe: Warning level 4 = AYEEEE!! Pin
Michael Dunn9-May-02 17:03
sitebuilderMichael Dunn9-May-02 17:03 
GeneralRe: Warning level 4 = AYEEEE!! Pin
Shog99-May-02 17:54
sitebuilderShog99-May-02 17:54 
GeneralRe: Warning level 4 = AYEEEE!! Pin
9-May-02 17:59
suss9-May-02 17:59 
GeneralRe: Warning level 4 = AYEEEE!! Pin
Shog99-May-02 18:10
sitebuilderShog99-May-02 18:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.