Click here to Skip to main content
15,921,382 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Writing an nice OSDesktop! Pin
Gary R. Wheeler23-Nov-02 2:39
Gary R. Wheeler23-Nov-02 2:39 
GeneralDll entry point error Pin
suresh_sathya22-Nov-02 22:06
suresh_sathya22-Nov-02 22:06 
QuestionHow upgrade my program automatically? Pin
Behzad Ebrahimi22-Nov-02 21:49
Behzad Ebrahimi22-Nov-02 21:49 
AnswerRe: How upgrade my program automatically? Pin
Anders Molin23-Nov-02 5:39
professionalAnders Molin23-Nov-02 5:39 
GeneralRe: How upgrade my program automatically? Pin
25-Nov-02 19:33
suss25-Nov-02 19:33 
GeneralBtmap editor Pin
codexxxxx22-Nov-02 20:06
codexxxxx22-Nov-02 20:06 
GeneralLoadBitmap(UINT) results in null dBits Pin
MJ522-Nov-02 19:45
MJ522-Nov-02 19:45 
GeneralMFC Questions Pin
tanuki2222-Nov-02 19:25
tanuki2222-Nov-02 19:25 
Hi All:

I have 3 questions on using MFC to do some GUI stuff. I am currently building a simulation, thus, I need to show some feedback to the user once the simulation starts. For example, I could be simulating a bouncing ball. Once the user clicks "Start", the simulation will run based on certain changing parameters (like speed of ball, height of ball etc) and feedback graphically to the user through a display window.

Qn1. May I know how can I make the display window refresh from my application? I understand that WM_PAINT should not be called from our own application.

Qn2. May I know what is the most efficient way of refreshing a device context? Currently, I am only updating a portion or pieces of the device context every timestep. What I am doing now is to "draw" the background first (so as to erase), then followed by going through what needs to be drawn onto the device context every timestep. I feel that there should be a better approach. The refresh needs to be pretty fast so that the user will not see any fickleness.

Qn3. I would like to write some sentences onto the device context. I am using "CDC::TextOut" in this case. May I know how then can I control the size and type of the font?

Due to company policy, I am not using the Doc/View approach in VC++ 6. I am manually coding in the various stuff like menus etc. Sorry if some of the questions is a bit naive as I am really new to MFC. Urgently needing help due to tight schedule.

Thank you very much in advance.

GeneralRe: MFC Questions Pin
Pavel Klocek22-Nov-02 21:33
Pavel Klocek22-Nov-02 21:33 
Generalmanually highlight a node in a tree control. Pin
trustno122-Nov-02 18:05
trustno122-Nov-02 18:05 
GeneralRe: manually highlight a node in a tree control. Pin
Michael Dunn22-Nov-02 19:25
sitebuilderMichael Dunn22-Nov-02 19:25 
QuestionHow to add new folder button Pin
sansingh22-Nov-02 17:58
sansingh22-Nov-02 17:58 
AnswerRe: How to add new folder button Pin
Atlantys22-Nov-02 18:13
Atlantys22-Nov-02 18:13 
GeneralBitmaps Pin
Steven M Hunt22-Nov-02 17:14
Steven M Hunt22-Nov-02 17:14 
GeneralRe: Bitmaps Pin
Christian Graus22-Nov-02 17:26
protectorChristian Graus22-Nov-02 17:26 
GeneralThe Art of Writing Comments :: Software Engineering Pin
valikac22-Nov-02 17:11
valikac22-Nov-02 17:11 
GeneralRe: The Art of Writing Comments :: Software Engineering Pin
Matt Gullett22-Nov-02 18:03
Matt Gullett22-Nov-02 18:03 
GeneralRe: The Art of Writing Comments :: Software Engineering Pin
Hockey22-Nov-02 18:16
Hockey22-Nov-02 18:16 
GeneralRe: The Art of Writing Comments :: Software Engineering Pin
Ranjan Banerji22-Nov-02 18:07
Ranjan Banerji22-Nov-02 18:07 
GeneralRe: The Art of Writing Comments :: Software Engineering Pin
Hockey22-Nov-02 18:12
Hockey22-Nov-02 18:12 
GeneralRe: The Art of Writing Comments :: Software Engineering Pin
valikac22-Nov-02 18:29
valikac22-Nov-02 18:29 
GeneralRe: The Art of Writing Comments :: Software Engineering Pin
Michael Dunn22-Nov-02 19:23
sitebuilderMichael Dunn22-Nov-02 19:23 
GeneralRe: The Art of Writing Comments :: Software Engineering Pin
Michael P Butler23-Nov-02 2:10
Michael P Butler23-Nov-02 2:10 
GeneralRe: The Art of Writing Comments :: Software Engineering Pin
Gary R. Wheeler23-Nov-02 2:58
Gary R. Wheeler23-Nov-02 2:58 
GeneralRe: The Art of Writing Comments :: Software Engineering Pin
valikac23-Nov-02 5:49
valikac23-Nov-02 5:49 

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.