Click here to Skip to main content
16,010,260 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralProblem with <map> memory allocation Pin
fordge7-Oct-02 20:55
fordge7-Oct-02 20:55 
GeneralRe: Problem with <map> memory allocation Pin
Joaquín M López Muñoz7-Oct-02 20:59
Joaquín M López Muñoz7-Oct-02 20:59 
GeneralRe: Problem with <map> memory allocation Pin
fordge7-Oct-02 21:11
fordge7-Oct-02 21:11 
GeneralRe: Problem with <map> memory allocation Pin
Joe Woodbury7-Oct-02 21:39
professionalJoe Woodbury7-Oct-02 21:39 
GeneralRe: Problem with <map> memory allocation Pin
Joaquín M López Muñoz7-Oct-02 21:50
Joaquín M López Muñoz7-Oct-02 21:50 
GeneralRe: Problem with <map> memory allocation Pin
fordge7-Oct-02 21:59
fordge7-Oct-02 21:59 
GeneralRe: Problem with <map> memory allocation Pin
jhwurmbach7-Oct-02 22:34
jhwurmbach7-Oct-02 22:34 
GeneralWrong icons (enabled/disabled) in the command bar! Pin
Daniel Strigl7-Oct-02 20:27
Daniel Strigl7-Oct-02 20:27 
I have a modal dialog with a command bar control.

So, to enable / disable some buttons of the command bar control I use the
OnUpdate???(CCmdUI* pCmdUI) function.

So, after I found out that the OnUpdate???(CCmdUI* pCmdUI) function
will not be called automatic (in the idle loop), I added the line
m_pWndEmptyCB->OnUpdateCmdUI((CFrameWnd *)this, TRUE); each time in the
program where I change the command bar state.

It works fine, always the right buttons are enabled / disabled.

I have only one problem!
Sometimes the wrong button icons (disabled/enabled icons)
are painted on the buttons.

When I have a disabled button it could be, that it have a "enabled icon".
And when I have a enabled button, it could be that it have a "disabled icon".
When I click on the enabled button, the right icon (enabled icon) will be painted!

Any idea to fix that problem??? It looks like missing a (re)painting message of the
command bar!

(I am working with embedded Visual C++ 3.0)

--
Nice greets, Daniel.
GeneralBatch file (*.BAT) Pin
Jerome Conus7-Oct-02 20:24
Jerome Conus7-Oct-02 20:24 
GeneralRe: Batch file (*.BAT) Pin
jmkhael7-Oct-02 22:38
jmkhael7-Oct-02 22:38 
GeneralRe: Batch file (*.BAT) Pin
Mike Nordell8-Oct-02 4:41
Mike Nordell8-Oct-02 4:41 
GeneralRe: Batch file (*.BAT) Pin
JT Anderson8-Oct-02 12:32
JT Anderson8-Oct-02 12:32 
GeneralRe: Batch file (*.BAT) Pin
Jerome Conus8-Oct-02 19:10
Jerome Conus8-Oct-02 19:10 
QuestionUpdateResource in Win95/98/ME? Pin
Henry P.7-Oct-02 18:48
Henry P.7-Oct-02 18:48 
AnswerRe: UpdateResource in Win95/98/ME? Pin
Joaquín M López Muñoz7-Oct-02 20:42
Joaquín M López Muñoz7-Oct-02 20:42 
GeneralRe: UpdateResource in Win95/98/ME? Pin
Henry P.8-Oct-02 10:01
Henry P.8-Oct-02 10:01 
GeneralCPropertyPage Help Pin
Richard Lewis7-Oct-02 18:43
Richard Lewis7-Oct-02 18:43 
GeneralRe: CPropertyPage Help Pin
Shog97-Oct-02 19:27
sitebuilderShog97-Oct-02 19:27 
GeneralRe: CPropertyPage Help Pin
Richard Lewis7-Oct-02 23:47
Richard Lewis7-Oct-02 23:47 
GeneralRe: CPropertyPage Help Pin
Shog98-Oct-02 3:32
sitebuilderShog98-Oct-02 3:32 
Questionrest of procedure? Pin
imran_rafique7-Oct-02 17:37
imran_rafique7-Oct-02 17:37 
AnswerRe: rest of procedure? Pin
Jon Hulatt7-Oct-02 22:01
Jon Hulatt7-Oct-02 22:01 
GeneralRe: rest of procedure? Pin
imran_rafique8-Oct-02 14:59
imran_rafique8-Oct-02 14:59 
GeneralRe: rest of procedure? Pin
Jon Hulatt8-Oct-02 21:29
Jon Hulatt8-Oct-02 21:29 
GeneralRe: rest of procedure? Pin
imran_rafique10-Oct-02 15:31
imran_rafique10-Oct-02 15:31 

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.