Click here to Skip to main content
16,011,947 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhow to make a groupbox's title transparent Pin
allenhu25-Jul-03 15:28
allenhu25-Jul-03 15:28 
AnswerRe: how to make a groupbox's title transparent Pin
Tom Archer25-Jul-03 17:15
Tom Archer25-Jul-03 17:15 
GeneralSymbolic Link, I think Pin
amleth25-Jul-03 15:02
amleth25-Jul-03 15:02 
GeneralRe: Symbolic Link, I think Pin
jbannon25-Jul-03 22:50
jbannon25-Jul-03 22:50 
GeneralEnabling/Disabling Menu Items Pin
Frank Deo25-Jul-03 14:41
Frank Deo25-Jul-03 14:41 
GeneralRe: Enabling/Disabling Menu Items Pin
Chris Maunder25-Jul-03 15:01
cofounderChris Maunder25-Jul-03 15:01 
GeneralRe: Enabling/Disabling Menu Items Pin
Frank Deo25-Jul-03 16:51
Frank Deo25-Jul-03 16:51 
GeneralRe: Enabling/Disabling Menu Items Pin
Toni7825-Jul-03 15:03
Toni7825-Jul-03 15:03 
Frank Deo wrote:
1. Where does the registry read function go? OnCreateClient, or PreCreateWindow?

It depends on what kind of data you are reading (i.e. will it affect the window that you are about to display?)
The place where I usually initialize data is on the function that handles WM_CREATE, but you have other options such as InitInstance, OnInitialUpdate, (if dialog base OnInitDialog), etc.

Frank Deo wrote:
2. In the Update functions for each menu ie start process and stop process, how do I enable one and disable the other, and vice versa.

To enable or disable menu items you can have a look at ON_UPDATE_COMMAND_UI or ON_UPDATE_COMMAND_UI_RANGE. Also the CCmdUI class. You can also have a look at EnableMenuItem().
pCmdUI->Enable( TRUE ); // FALSE to disable

// Afterall, I realized that even my comment lines have bugs

When one cannot invent, one must at least improve (in bed).-My latest fortune cookie
GeneralRe: Enabling/Disabling Menu Items Pin
Frank Deo25-Jul-03 16:52
Frank Deo25-Jul-03 16:52 
GeneralRe: Enabling/Disabling Menu Items Pin
Toni7826-Jul-03 7:45
Toni7826-Jul-03 7:45 
GeneralGetting selected folder in a namespace extension Pin
Mike Hartway25-Jul-03 14:27
Mike Hartway25-Jul-03 14:27 
GeneralHelp Pin
Snyp25-Jul-03 13:34
Snyp25-Jul-03 13:34 
GeneralRe: Help Pin
Beer2625-Jul-03 13:42
Beer2625-Jul-03 13:42 
GeneralRe: Help Pin
Snyp25-Jul-03 13:51
Snyp25-Jul-03 13:51 
GeneralRe: Help Pin
Beer2625-Jul-03 13:53
Beer2625-Jul-03 13:53 
QuestionHow to set default view with CFileDialog Pin
plsmith25-Jul-03 12:30
plsmith25-Jul-03 12:30 
AnswerRe: How to set default view with CFileDialog Pin
Neville Franks25-Jul-03 13:21
Neville Franks25-Jul-03 13:21 
GeneralRe: How to set default view with CFileDialog Pin
plsmith25-Jul-03 13:52
plsmith25-Jul-03 13:52 
GeneralRe: How to set default view with CFileDialog Pin
Neville Franks26-Jul-03 12:01
Neville Franks26-Jul-03 12:01 
GeneralDDK Problems Pin
yitzhak25-Jul-03 11:36
yitzhak25-Jul-03 11:36 
GeneralRe: DDK Problems Pin
Toni7825-Jul-03 12:24
Toni7825-Jul-03 12:24 
GeneralRe: DDK Problems Pin
yitzhak26-Jul-03 8:16
yitzhak26-Jul-03 8:16 
GeneralRe: DDK Problems Pin
Beer2625-Jul-03 12:48
Beer2625-Jul-03 12:48 
GeneralRe: DDK Problems Pin
yitzhak26-Jul-03 8:05
yitzhak26-Jul-03 8:05 
GeneralRe: DDK Problems Pin
Beer2626-Jul-03 8:37
Beer2626-Jul-03 8:37 

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.