Click here to Skip to main content
16,005,222 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Filling CListCtrl from dll problem... Pin
Joaquín M López Muñoz26-Oct-01 7:27
Joaquín M López Muñoz26-Oct-01 7:27 
GeneralAligning text Pin
Andrew Stampor26-Oct-01 3:57
Andrew Stampor26-Oct-01 3:57 
General2-d Graphics Pin
Chambers26-Oct-01 3:52
Chambers26-Oct-01 3:52 
GeneralRe: 2-d Graphics Pin
Remi Morin26-Oct-01 8:33
Remi Morin26-Oct-01 8:33 
GeneralRe: 2-d Graphics Pin
Christian Graus26-Oct-01 11:04
protectorChristian Graus26-Oct-01 11:04 
GeneralRe: 2-d Graphics Pin
Chambers27-Oct-01 0:07
Chambers27-Oct-01 0:07 
GeneralRe: 2-d Graphics Pin
Christian Graus27-Oct-01 0:32
protectorChristian Graus27-Oct-01 0:32 
GeneralON_UPDATE_COMMAND_UI problem... Pin
Remi Morin26-Oct-01 3:50
Remi Morin26-Oct-01 3:50 
I used the ON_UPDATE_COMMAND_UI message in a DialogBar to display button, this fonction do nothing. It is only usefull to avoid my DialogBar to grayed my button so the message map look like this

BEGIN_MESSAGE_MAP(CVBurnBar, CDialogBar)
	//{{AFX_MSG_MAP(CVBurnBar)
        //...other message handler
	ON_UPDATE_COMMAND_UI(IDC_Up_Normalize_AxisY, OnUpdateButton)
	ON_UPDATE_COMMAND_UI(IDC_Bottom_Normalize_AxisY, OnUpdateButton)
	ON_UPDATE_COMMAND_UI(IDC_Bottom_Adjust_Y, OnUpdateButton)
	ON_UPDATE_COMMAND_UI(IDC_Up_Adjust_Y, OnUpdateButton)
	//}}AFX_MSG_MAP
	ON_MESSAGE(WM_INITDIALOG,OnInitDialog)
END_MESSAGE_MAP()

and the function
void CVBurnBar::OnUpdateButton(CCmdUI* /* pCmdUI*/) 
{}

but theses message handler are called very often... what can I do to avoid this function to be call so often? Is there an other way to display button NOT GRAYED in a dialog bar whitout using the ON_UPDATE_COMMAND_UI.
when I do MyButton.EnableWindow(true) if the ON_UPDATE_COMMAND_UI is not define for this button it is automatically grayed after 1/10 of a second...

What I wan't is to display and grayed my button when I want...

any idea?

Remi Morin
Rmorin@Operamail.com
Remi.Morin@Lyrtech.com
GeneralRe: ON_UPDATE_COMMAND_UI problem... Pin
Tomasz Sowinski26-Oct-01 4:01
Tomasz Sowinski26-Oct-01 4:01 
GeneralRe: ON_UPDATE_COMMAND_UI problem... Pin
Chambers26-Oct-01 4:08
Chambers26-Oct-01 4:08 
GeneralRe: ON_UPDATE_COMMAND_UI problem... Pin
Carlos Antollini26-Oct-01 4:12
Carlos Antollini26-Oct-01 4:12 
GeneralRe: ON_UPDATE_COMMAND_UI problem... Pin
Carlos Antollini26-Oct-01 4:17
Carlos Antollini26-Oct-01 4:17 
GeneralDate and Time Picker Control Pin
Steve Thresher26-Oct-01 3:43
Steve Thresher26-Oct-01 3:43 
GeneralListview Custom Draw Pin
Paul C26-Oct-01 1:11
Paul C26-Oct-01 1:11 
GeneralRe: Listview Custom Draw Pin
#realJSOP26-Oct-01 1:24
professional#realJSOP26-Oct-01 1:24 
GeneralRe: Listview Custom Draw Pin
Paul C26-Oct-01 1:32
Paul C26-Oct-01 1:32 
GeneralRe: Listview Custom Draw Pin
#realJSOP26-Oct-01 3:35
professional#realJSOP26-Oct-01 3:35 
GeneralRe: Listview Custom Draw Pin
Paul C26-Oct-01 4:04
Paul C26-Oct-01 4:04 
GeneralRe: Listview Custom Draw Pin
Tomasz Sowinski26-Oct-01 2:38
Tomasz Sowinski26-Oct-01 2:38 
GeneralRe: Listview Custom Draw Pin
Paul C26-Oct-01 3:12
Paul C26-Oct-01 3:12 
GeneralRe: Listview Custom Draw Pin
Tomasz Sowinski26-Oct-01 3:35
Tomasz Sowinski26-Oct-01 3:35 
GeneralRe: Listview Custom Draw Pin
Paul C26-Oct-01 4:07
Paul C26-Oct-01 4:07 
GeneralDecoding filenames/paths Pin
Jon Hulatt26-Oct-01 1:04
Jon Hulatt26-Oct-01 1:04 
GeneralRe: Decoding filenames/paths Pin
Tomasz Sowinski26-Oct-01 2:35
Tomasz Sowinski26-Oct-01 2:35 
GeneralRe: Decoding filenames/paths Pin
Jon Hulatt26-Oct-01 3:36
Jon Hulatt26-Oct-01 3:36 

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.