Click here to Skip to main content
15,906,816 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: %1f\n? Pin
Steve S8-Jul-03 2:30
Steve S8-Jul-03 2:30 
GeneralRe: %1f\n? Pin
DaveE9th8-Jul-03 9:08
DaveE9th8-Jul-03 9:08 
GeneralOpen Website with "POST" Pin
AnTri7-Jul-03 22:27
AnTri7-Jul-03 22:27 
GeneralRe: Open Website with "POST" Pin
Iain Clarke, Warrior Programmer8-Jul-03 0:03
Iain Clarke, Warrior Programmer8-Jul-03 0:03 
GeneralRestore down button Pin
imajit7-Jul-03 22:09
imajit7-Jul-03 22:09 
GeneralRe: Restore down button Pin
Iain Clarke, Warrior Programmer7-Jul-03 23:58
Iain Clarke, Warrior Programmer7-Jul-03 23:58 
GeneralRe: Restore down button Pin
imajit8-Jul-03 1:06
imajit8-Jul-03 1:06 
GeneralRe: Restore down button Pin
Iain Clarke, Warrior Programmer8-Jul-03 1:42
Iain Clarke, Warrior Programmer8-Jul-03 1:42 
People come here to help & hint, not to do *all* the work! Poke tongue | ;-P

Have you made a handler for WM_SYSCOMMAND? You can go into classwizard, and and the handler to
CMainFrame there.
Then, check the handler is called, by putting a breakpoint in it. Or making it pop up a MessageBox.
When you are confident it is called, start checking nID (one of its parameters) for when it =SC_RESTORE.
If so, don't can the base method, but return 0.

void CMainFrame::OnSysCommand (UINT nID, LPARAM lParam)
{
    if (nID == SC_CLOSE)
        return 0;
    CMDIFrameWnd::OnSysCommand (nID, lParam);
}


Now try "restore" from the button on the top right, or the system menu on the top left.

To change the window style, look up:
CWnd::PreCreateWindow.
To remove menu items from the system menu, look up CMenu, CWnd::GetSystemMenu, and put them in
CMainFrame::OnCreate (....).

Good luck,

Iain.
Generalto enter numeric value into an edit box Pin
Emre Zorlu7-Jul-03 22:03
Emre Zorlu7-Jul-03 22:03 
GeneralRe: to enter numeric value into an edit box Pin
Cedric Moonen7-Jul-03 22:16
Cedric Moonen7-Jul-03 22:16 
GeneralRe: to enter numeric value into an edit box Pin
Emre Zorlu7-Jul-03 22:25
Emre Zorlu7-Jul-03 22:25 
GeneralRe: to enter numeric value into an edit box Pin
Cedric Moonen7-Jul-03 22:40
Cedric Moonen7-Jul-03 22:40 
GeneralRe: to enter numeric value into an edit box Pin
Emre Zorlu7-Jul-03 22:44
Emre Zorlu7-Jul-03 22:44 
GeneralC++ compiler Pin
BoudewijnEctor7-Jul-03 21:33
BoudewijnEctor7-Jul-03 21:33 
GeneralRe: C++ compiler Pin
Rage7-Jul-03 22:42
professionalRage7-Jul-03 22:42 
GeneralRe: C++ compiler Pin
BoudewijnEctor7-Jul-03 23:05
BoudewijnEctor7-Jul-03 23:05 
GeneralRe: C++ compiler Pin
Mike Dimmick7-Jul-03 23:06
Mike Dimmick7-Jul-03 23:06 
GeneralRe: C++ compiler Pin
BoudewijnEctor8-Jul-03 5:03
BoudewijnEctor8-Jul-03 5:03 
GeneralRe: C++ compiler Pin
Mike Dimmick8-Jul-03 5:19
Mike Dimmick8-Jul-03 5:19 
GeneralRe: C++ compiler Pin
BoudewijnEctor8-Jul-03 21:37
BoudewijnEctor8-Jul-03 21:37 
GeneralRe: C++ compiler Pin
Mike Dimmick8-Jul-03 22:49
Mike Dimmick8-Jul-03 22:49 
GeneralRe: C++ compiler Pin
BoudewijnEctor11-Jul-03 1:59
BoudewijnEctor11-Jul-03 1:59 
GeneralRe: C++ compiler Pin
Mike Dimmick11-Jul-03 2:32
Mike Dimmick11-Jul-03 2:32 
GeneralDisable Right Click Context menu!!! Pin
xxhimanshu7-Jul-03 19:58
xxhimanshu7-Jul-03 19:58 
GeneralRe: Disable Right Click Context menu!!! Pin
FlyingDancer7-Jul-03 20:36
FlyingDancer7-Jul-03 20:36 

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.