Click here to Skip to main content
16,012,173 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to SendMessage to a windowless Ctrl Pin
ray_li25-Jul-03 7:39
ray_li25-Jul-03 7:39 
AnswerRe: How to SendMessage to a windowless Ctrl Pin
BadJerry25-Jul-03 6:31
BadJerry25-Jul-03 6:31 
GeneralDisable window close [X] button Pin
David Chamberlain25-Jul-03 3:36
David Chamberlain25-Jul-03 3:36 
GeneralRe: Disable window close [X] button Pin
Member 42425925-Jul-03 3:55
Member 42425925-Jul-03 3:55 
GeneralRe: Disable window close [X] button Pin
David Chamberlain25-Jul-03 4:16
David Chamberlain25-Jul-03 4:16 
GeneralRe: Disable window close [X] button Pin
valikac25-Jul-03 5:30
valikac25-Jul-03 5:30 
GeneralRe: Disable window close [X] button Pin
David Chamberlain25-Jul-03 7:01
David Chamberlain25-Jul-03 7:01 
GeneralRe: Disable window close [X] button Pin
John M. Drescher25-Jul-03 8:39
John M. Drescher25-Jul-03 8:39 
That should work anyways. See the doc for CWnd::GetSystemMenu.

CWnd::GetSystemMenu
CMenu* GetSystemMenu( BOOL bRevert ) const;

Return Value

Identifies a copy of the Control menu if bRevert is FALSE. If bRevert is TRUE, the return value is undefined.

The returned pointer may be temporary and should not be stored for later use.

Parameters

bRevert

Specifies the action to be taken. If bRevert is FALSE, GetSystemMenu returns a handle to a copy of the Control menu currently in use. This copy is initially identical to the Control menu but can be modified. If bRevert is TRUE, GetSystemMenu resets the Control menu back to the default state. The previous, possibly modified, Control menu, if any, is destroyed. The return value is undefined in this case.

Remarks

Allows the application to access the Control menu for copying and modification.

Any window that does not use GetSystemMenu to make its own copy of the Control menu receives the standard Control menu.

The pointer returned by the GetSystemMenu member function can be used with the CMenu::AppendMenu, CMenu::InsertMenu, or CMenu::ModifyMenu functions to change the Control menu.

The Control menu initially contains items identified with various ID values such as SC_CLOSE, SC_MOVE, and SC_SIZE. Items on the Control menu generate WM_SYSCOMMAND messages. All predefined Control-menu items have ID numbers greater than 0xF000. If an application adds items to the Control menu, it should use ID numbers less than F000.

Windows may automatically dim items on the standard Control menu. CWnd can carry out its own checking or dimming by responding to the WM_INITMENU messages, which are sent before any menu is displayed.


John
GeneralRe: Disable window close [X] button Pin
Bob Stanneveld25-Jul-03 9:59
Bob Stanneveld25-Jul-03 9:59 
GeneralRe: Disable window close [X] button Pin
jason9925-Jul-03 5:51
jason9925-Jul-03 5:51 
GeneralVirtual function CDialog::OnCancel() Pin
Anonymous25-Jul-03 3:20
Anonymous25-Jul-03 3:20 
GeneralRe: Virtual function CDialog::OnCancel() Pin
Ryan Binns25-Jul-03 3:24
Ryan Binns25-Jul-03 3:24 
GeneralRe: Virtual function CDialog::OnCancel() Pin
Bob Stanneveld25-Jul-03 3:34
Bob Stanneveld25-Jul-03 3:34 
GeneralRe: Virtual function CDialog::OnCancel() Pin
Anonymous25-Jul-03 3:35
Anonymous25-Jul-03 3:35 
GeneralRe: Virtual function CDialog::OnCancel() Pin
Anonymous25-Jul-03 3:54
Anonymous25-Jul-03 3:54 
GeneralRe: Virtual function CDialog::OnCancel() Pin
Bob Stanneveld25-Jul-03 9:49
Bob Stanneveld25-Jul-03 9:49 
GeneralRe: Virtual function CDialog::OnCancel() Pin
yitzhak25-Jul-03 11:19
yitzhak25-Jul-03 11:19 
GeneralInline function insanity. Pin
73Zeppelin25-Jul-03 3:15
73Zeppelin25-Jul-03 3:15 
GeneralRe: Inline function insanity. Pin
Ryan Binns25-Jul-03 3:23
Ryan Binns25-Jul-03 3:23 
GeneralRe: Inline function insanity. Pin
Member 42425925-Jul-03 3:24
Member 42425925-Jul-03 3:24 
GeneralRe: Inline function insanity. Pin
David Crow25-Jul-03 5:29
David Crow25-Jul-03 5:29 
GeneralRe: Inline function insanity. Pin
Gary R. Wheeler25-Jul-03 6:30
Gary R. Wheeler25-Jul-03 6:30 
GeneralRe: Inline function insanity. Pin
73Zeppelin25-Jul-03 7:05
73Zeppelin25-Jul-03 7:05 
GeneralCopying classes between projects Pin
pgs25-Jul-03 2:54
pgs25-Jul-03 2:54 
GeneralRe: Copying classes between projects Pin
David Crow25-Jul-03 3:08
David Crow25-Jul-03 3:08 

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.