Click here to Skip to main content
15,912,504 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralExplorer volume information Pin
Pheonix4-Jul-04 20:30
Pheonix4-Jul-04 20:30 
GeneralRe: Explorer volume information Pin
Graham Bradshaw4-Jul-04 23:51
Graham Bradshaw4-Jul-04 23:51 
GeneralRe: Explorer volume information Pin
Pheonix5-Jul-04 3:12
Pheonix5-Jul-04 3:12 
GeneralRe: Explorer volume information Pin
Graham Bradshaw5-Jul-04 3:14
Graham Bradshaw5-Jul-04 3:14 
GeneralRe: Explorer volume information Pin
Pheonix5-Jul-04 4:14
Pheonix5-Jul-04 4:14 
GeneralRe: Explorer volume information Pin
Graham Bradshaw5-Jul-04 3:23
Graham Bradshaw5-Jul-04 3:23 
QuestionHow to add control on a Button? Pin
Rajesh_K_Sharma4-Jul-04 20:07
Rajesh_K_Sharma4-Jul-04 20:07 
AnswerRe: How to add control on a Button? Pin
Antti Keskinen4-Jul-04 21:09
Antti Keskinen4-Jul-04 21:09 
The following is a useful check-up list to accomplish what you describe
1. Create a command handler for the property sheet's OK-button click.
2. In this handler, use GetActivePage to get a pointer to the currently active property page object.
3. Use DYNAMIC_DOWNCAST to cast from the CPropertyPage pointer returned above into your derived class' pointer.
4. Create a function into your derived class that does the following:
4.a. Calls UpdateData(TRUE)
4.b. Calculates m_ntxt3 = m_ntxt1 + m_ntxt2
4.c. Calls UpdateData(FALSE)
5. Now, in the property sheet's command handler, call the derived property page class' function that will calculate the sum.

This approach requires that all the controls (Edit boxes) and the integer variables belong to the derived property page class. If you need to display a pop-up message box, then use a temporary CString object, formatting it with the integer data (CString::Format), then calling AfxMessageBox and supplying the CString object as the text parameter.

-Antti Keskinen

----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
GeneralRe: How to add control on a Button? Pin
Rajesh_K_Sharma5-Jul-04 23:15
Rajesh_K_Sharma5-Jul-04 23:15 
GeneralRe: How to add control on a Button? Pin
Antti Keskinen6-Jul-04 5:24
Antti Keskinen6-Jul-04 5:24 
Generalhide menubar Pin
s o v a n n4-Jul-04 20:01
s o v a n n4-Jul-04 20:01 
GeneralRe: hide menubar Pin
A T I F4-Jul-04 21:49
A T I F4-Jul-04 21:49 
GeneralRe: hide menubar Pin
s o v a n n5-Jul-04 1:56
s o v a n n5-Jul-04 1:56 
GeneralWM_QUERYENDSESSION problems Pin
Mayank Goyal4-Jul-04 19:39
Mayank Goyal4-Jul-04 19:39 
Generaldetermine the End of video file Pin
Anonymous4-Jul-04 19:24
Anonymous4-Jul-04 19:24 
Generali need to make some 256x256 bitmaps from lots of other bitmaps Pin
Slim Gradey4-Jul-04 18:03
Slim Gradey4-Jul-04 18:03 
Generalabout service program Pin
yingkou4-Jul-04 16:02
yingkou4-Jul-04 16:02 
GeneralRe: about service program Pin
Antti Keskinen4-Jul-04 21:16
Antti Keskinen4-Jul-04 21:16 
Questionfixing the palette for icons? Pin
java_jedi4-Jul-04 15:12
java_jedi4-Jul-04 15:12 
AnswerRe: fixing the palette for icons? Pin
Maximilien4-Jul-04 16:43
Maximilien4-Jul-04 16:43 
GeneralTimer for Minute, Hours & days.. Pin
Sumit Kapoor4-Jul-04 13:50
Sumit Kapoor4-Jul-04 13:50 
GeneralRe: Timer for Minute, Hours & days.. Pin
User 66584-Jul-04 14:09
User 66584-Jul-04 14:09 
GeneralRe: Timer for Minute, Hours & days.. Pin
Sumit Kapoor4-Jul-04 14:30
Sumit Kapoor4-Jul-04 14:30 
GeneralRe: Timer for Minute, Hours & days.. Pin
Ryan Binns4-Jul-04 18:04
Ryan Binns4-Jul-04 18:04 
GeneralRe: Timer for Minute, Hours & days.. Pin
Ravi Bhavnani4-Jul-04 15:00
professionalRavi Bhavnani4-Jul-04 15:00 

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.