Click here to Skip to main content
15,917,005 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralLanguage support for dialogs Pin
Chris Vischer17-Aug-00 4:58
Chris Vischer17-Aug-00 4:58 
GeneralRe: Language support for dialogs Pin
Blake Miller22-Aug-00 9:53
Blake Miller22-Aug-00 9:53 
GeneralAccessing to Http header data in IE COM Pin
Ryan Park16-Aug-00 14:12
Ryan Park16-Aug-00 14:12 
GeneralBasic query regarding arrays/data sets Pin
Charlie the Wonderhorse16-Aug-00 11:02
sussCharlie the Wonderhorse16-Aug-00 11:02 
GeneralRe: Basic query regarding arrays/data sets Pin
Philip Nicoletti17-Aug-00 8:30
Philip Nicoletti17-Aug-00 8:30 
GeneralRe: Basic query regarding arrays/data sets Pin
Philip Nicoletti17-Aug-00 13:46
Philip Nicoletti17-Aug-00 13:46 
QuestionMinimizeBox in a PropertySheet? Pin
Mathias16-Aug-00 7:50
Mathias16-Aug-00 7:50 
AnswerRe: MinimizeBox in a PropertySheet? Pin
Frank Deo16-Aug-00 10:40
Frank Deo16-Aug-00 10:40 
You can...

In your CPropertySheet derived class add the following to the constructor:

m_psh.dwFlags |= PSH_USEHICON;
m_psh.hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);


This will add the icon for the "System Menu".

Then, Add a message handler function for "OnCreate", and add this:

ModifyStyle(0, WS_MINIMIZEBOX|WS_SYSMENU);


This will add the "Minimize" button to the Non-Client area of the dialog. If you don't want "Maximize". You can add the following to the "OnInitDialog" function in your CPropertySheet class:

CMenu *pSysMenu = GetSystemMenu(FALSE);
ASSERT(pSysMenu != NULL);
VERIFY(pSysMenu->RemoveMenu(SC_MAXIMIZE, MF_BYCOMMAND)); 


I've done this in a project, and it works. Smile | :)

Good Luck,
Frank
GeneralAnother socket failure - in Create() call Pin
Alex Alexapolsky16-Aug-00 3:29
sussAlex Alexapolsky16-Aug-00 3:29 
GeneralRegarding Dial up Pin
Krithivasan M. S16-Aug-00 3:14
Krithivasan M. S16-Aug-00 3:14 
GeneralRe: Regarding Dial up Pin
Member 120896516-Aug-00 13:01
Member 120896516-Aug-00 13:01 
QuestionReboot the PC programatically ? Pin
Adalsteinn B. Bjarnason16-Aug-00 1:21
Adalsteinn B. Bjarnason16-Aug-00 1:21 
AnswerRe: Reboot the PC programatically ? Pin
Benedict Verheyen17-Aug-00 5:16
sussBenedict Verheyen17-Aug-00 5:16 
Generalchanging the default mfc icon Pin
Pierre Koerber16-Aug-00 0:10
sussPierre Koerber16-Aug-00 0:10 
GeneralRe: changing the default mfc icon Pin
Benedict Verheyen17-Aug-00 5:30
sussBenedict Verheyen17-Aug-00 5:30 
GeneralCAsyncSocket-debug assertion failed Pin
Alex Alexapolsky15-Aug-00 22:13
sussAlex Alexapolsky15-Aug-00 22:13 
GeneralRe: CAsyncSocket-debug assertion failed Pin
Remus Lazar16-Aug-00 2:27
Remus Lazar16-Aug-00 2:27 
GeneralCAsyncSocket-debug assertion failed Pin
Alex Alexapolsky15-Aug-00 22:11
sussAlex Alexapolsky15-Aug-00 22:11 
QuestionHow to register my program into the startup Pin
koteswara15-Aug-00 18:38
koteswara15-Aug-00 18:38 
AnswerRe: How to register my program into the startup Pin
Remus Lazar16-Aug-00 2:56
Remus Lazar16-Aug-00 2:56 
GeneralAddItem-method for MSHFlexGrid 6.0 Pin
Stefan Alpers15-Aug-00 5:10
sussStefan Alpers15-Aug-00 5:10 
GeneralRe: AddItem-method for MSHFlexGrid 6.0 Pin
Remus Lazar16-Aug-00 2:51
Remus Lazar16-Aug-00 2:51 
GeneralLoading a list from file into a List Box Pin
SmokingRope2214-Aug-00 14:53
SmokingRope2214-Aug-00 14:53 
GeneralRe: Loading a list from file into a List Box Pin
Philip Nicoletti15-Aug-00 3:24
Philip Nicoletti15-Aug-00 3:24 
GeneralRe: Loading a list from file into a List Box Pin
SmokingRope2215-Aug-00 17:06
SmokingRope2215-Aug-00 17:06 

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.