Click here to Skip to main content
15,926,596 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
You should be using ON_UPDATE_COMMAND_UI_RANGE(IDC_Up_Normalise_AxisY, IDC_Up_Adjust_Y, OnUpdateButton) provided the command IDs use that range. This maps the button handlers to the same function(OnUpdateButton), something it looks like your trying to do. The function does nothing because you haven`t said for it to do anything! I think that in the CVBurnBar function, if you change the parameter to (CCmdUI* pCmdUI) i.e no comments, then you should have control to change the button i.e gray it out etc (using pCmdUI->thefunctionyouwant). Also make sure the afx_msg void OnUpdateButton in the header file is changed to reflect this. To stop the button being grayed out at the start all you need to do is add a message map for ON_COMMAND_RANGE(IDC_Up_Normalise_AxisY, IDC_Up_Adjust_Y, TheFunctionYouWantToCallWhenButtonIsClicked). hope this helped slightly.Big Grin | :-D

AEGC
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 
QuestionHow to record my voice to *.wma format? Pin
Huu Quynh26-Oct-01 1:02
Huu Quynh26-Oct-01 1:02 
GeneralSending WM_MOUSEMOVE to any window Pin
Kuniva26-Oct-01 0:48
Kuniva26-Oct-01 0:48 

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.