Click here to Skip to main content
15,902,447 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Knowing Client Window Messages in MDI Window ... Pin
Mike Upton12-Jul-02 3:52
Mike Upton12-Jul-02 3:52 
GeneralNice :))))) ... Thanks Pin
Cursoe12-Jul-02 17:14
sussCursoe12-Jul-02 17:14 
Generalto Subclass or not to Subclass ... Pin
12-Jul-02 20:49
suss12-Jul-02 20:49 
GeneralErrno and a linking problem (again...) Pin
Janine12-Jul-02 3:02
Janine12-Jul-02 3:02 
GeneralRe: Errno and a linking problem (again...) Pin
Joaquín M López Muñoz12-Jul-02 5:53
Joaquín M López Muñoz12-Jul-02 5:53 
GeneralRe: Errno and a linking problem (again...) Pin
Alexandru Savescu12-Jul-02 6:20
Alexandru Savescu12-Jul-02 6:20 
GeneralCToolbar - diable item Pin
jafrazee12-Jul-02 2:59
jafrazee12-Jul-02 2:59 
GeneralRe: CToolbar - diable item Pin
Mike Upton12-Jul-02 3:13
Mike Upton12-Jul-02 3:13 
The easiest and cleanest way to handle enabling/disabling any UI item in an MFC app is by using update handlers, which can be added with the ClassWizard.

Search in MSDN for things like the ON_UPDATE_COMMAND_UI macro and CCmdUI objects, and have a look at MFC Technical Note 021 (TN021 in the index). The automatic disabling of toolbar buttons and menu entries without command handlers is also dealt with through the same architecture, and can be disabled by setting the m_bAutoMenuEnable member of your main frame window to false. See also Mike Dunn's C++ FAQ q.7.1



"We are the knights who say Ni" (The Knights Who Say Ni)
GeneralRe: CToolbar - diable item Pin
Rage12-Jul-02 3:18
professionalRage12-Jul-02 3:18 
GeneralControls show in different ways in CDialog Pin
sanskypotov12-Jul-02 2:42
sanskypotov12-Jul-02 2:42 
GeneralRunning Visual C++ 6.0 and .Net Pin
Amos Kermisch12-Jul-02 2:33
sussAmos Kermisch12-Jul-02 2:33 
GeneralRe: Running Visual C++ 6.0 and .Net Pin
Alexandru Savescu12-Jul-02 6:18
Alexandru Savescu12-Jul-02 6:18 
GeneralRe: Running Visual C++ 6.0 and .Net Pin
Anonymous13-Jul-02 13:53
Anonymous13-Jul-02 13:53 
Questionhow can i make a transparent dialog in win98 Pin
ttzzgg_8071312-Jul-02 2:31
ttzzgg_8071312-Jul-02 2:31 
AnswerRe: how can i make a transparent dialog in win98 Pin
benjymous12-Jul-02 2:44
benjymous12-Jul-02 2:44 
Questiondictionary, bag ..., what is that? Pin
includeh1012-Jul-02 2:12
includeh1012-Jul-02 2:12 
AnswerRe: dictionary, bag ..., what is that? Pin
Chris Losinger12-Jul-02 3:18
professionalChris Losinger12-Jul-02 3:18 
GeneralRe: dictionary, bag ..., what is that? Pin
includeh1012-Jul-02 3:24
includeh1012-Jul-02 3:24 
GeneralRe: dictionary, bag ..., what is that? Pin
Chris Losinger12-Jul-02 3:26
professionalChris Losinger12-Jul-02 3:26 
AnswerRe: dictionary, bag ..., what is that? Pin
Alexandru Savescu12-Jul-02 6:40
Alexandru Savescu12-Jul-02 6:40 
GeneralCOleDispatchDriver Pin
AJ12312-Jul-02 1:09
AJ12312-Jul-02 1:09 
GeneralRe: COleDispatchDriver Pin
AJ12312-Jul-02 5:47
AJ12312-Jul-02 5:47 
GeneralProblems iterating through a std::map Pin
Alexandru Savescu12-Jul-02 0:46
Alexandru Savescu12-Jul-02 0:46 
GeneralRe: Problems iterating through a std::map Pin
Christian Graus12-Jul-02 1:06
protectorChristian Graus12-Jul-02 1:06 
GeneralRe: Problems iterating through a std::map Pin
Alexandru Savescu12-Jul-02 1:14
Alexandru Savescu12-Jul-02 1:14 

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.