Click here to Skip to main content
15,922,894 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: List Box & Rich Edit box Pin
David Crow16-Feb-07 2:52
David Crow16-Feb-07 2:52 
QuestionWindows Menus and the WM_MENUCOMMAND message Pin
Martin081515-Feb-07 22:41
professionalMartin081515-Feb-07 22:41 
QuestionRe: Windows Menus and the WM_MENUCOMMAND message Pin
prasad_som16-Feb-07 1:51
prasad_som16-Feb-07 1:51 
AnswerRe: Windows Menus and the WM_MENUCOMMAND message Pin
Martin081516-Feb-07 2:22
professionalMartin081516-Feb-07 2:22 
AnswerRe: Windows Menus and the WM_MENUCOMMAND message Pin
prasad_som16-Feb-07 3:08
prasad_som16-Feb-07 3:08 
QuestionRe: Windows Menus and the WM_MENUCOMMAND message Pin
Martin081516-Feb-07 3:56
professionalMartin081516-Feb-07 3:56 
AnswerRe: Windows Menus and the WM_MENUCOMMAND message Pin
prasad_som16-Feb-07 5:00
prasad_som16-Feb-07 5:00 
GeneralRe: Windows Menus and the WM_MENUCOMMAND message Pin
Martin081516-Feb-07 6:31
professionalMartin081516-Feb-07 6:31 
QuestionDebugging capability Pin
mt_samiei15-Feb-07 22:39
mt_samiei15-Feb-07 22:39 
AnswerRe: Debugging capability Pin
Cedric Moonen15-Feb-07 22:50
Cedric Moonen15-Feb-07 22:50 
GeneralRe: Debugging capability Pin
mt_samiei15-Feb-07 23:03
mt_samiei15-Feb-07 23:03 
GeneralRe: Debugging capability Pin
NiceNaidu15-Feb-07 23:07
NiceNaidu15-Feb-07 23:07 
Questionkbhit() Question Pin
Programm3r15-Feb-07 20:57
Programm3r15-Feb-07 20:57 
AnswerRe: kbhit() Question Pin
Programm3r15-Feb-07 21:10
Programm3r15-Feb-07 21:10 
GeneralRe: kbhit() Question Pin
prasad_som15-Feb-07 22:29
prasad_som15-Feb-07 22:29 
AnswerRe: kbhit() Question [modified] Pin
prasad_som15-Feb-07 21:54
prasad_som15-Feb-07 21:54 
AnswerRe: kbhit() Question Pin
David Crow16-Feb-07 3:19
David Crow16-Feb-07 3:19 
QuestionMessagebox Question Pin
Programm3r15-Feb-07 20:47
Programm3r15-Feb-07 20:47 
AnswerRe: Messagebox Question Pin
toxcct15-Feb-07 20:52
toxcct15-Feb-07 20:52 
GeneralRe: Messagebox Question Pin
Programm3r15-Feb-07 20:57
Programm3r15-Feb-07 20:57 
QuestionENTER and SHIFT+ENTER in simple text edit box (EDITTEXT) Pin
deivakumar15-Feb-07 20:10
deivakumar15-Feb-07 20:10 
QuestionRe: ENTER and SHIFT+ENTER in simple text edit box (EDITTEXT) Pin
kakan15-Feb-07 20:30
professionalkakan15-Feb-07 20:30 
AnswerRe: ENTER and SHIFT+ENTER in simple text edit box (EDITTEXT) Pin
Michael Dunn15-Feb-07 20:43
sitebuilderMichael Dunn15-Feb-07 20:43 
QuestionQuick repaints Pin
BishGada15-Feb-07 19:42
BishGada15-Feb-07 19:42 
Hello,
First, I'm pretty sure someone already asked this question, but I couldn't find the right keywords (I did try for about 60 minutes and read pretty much other interesting stuff though), so I hope I'm not annoying anyone.
Anyway, I'm having a multi-document application that each view shows different camera in a 3D scene. I have the code to draw the frame for each view, but of course I need a continuous update. I tried 3 methods and each had its drawbacks so I'd really appriciate any suggestions.
Here are the methods:
1. (The trivial one) - at the end of the code of the OnDraw I'm invalidating the entire view. (this method even that it worked in some other applications I wrote, failed and the application entered deadlock).
2. When view is initialized, I create a thread that paints the view continuously. (deadlock).
3. The thread sends continuously WM_PAINT messages. (works for one view but when I have more than one view the application again enters deadlock)
4. The thread loop send WM_PAINT and then Sleep(1) (works. Sleep(0) enters deadlock.)
5. One thread that sends all the views WM_PAINT (deadlock even with the Sleep).

so now I'm using method 4. The problem in both 3 and 4 is that the framerate drops down. and in 4 it becomes really slow (1/3 of the potential that 3D apps actually can get on the same computer).

does anyone have any idea why does those deadlock happens?

some more information that might be required is that the draw function is implemented in an engine that takes the handle of the window to draw to and it handles itself all the context switching.
maybe I will have to dig in in that engine and see if the problem lies there, but first I wanted to give a shot for the windowing system.

thanks a lot,
Guy.

p.s.
I also appologize for my english. Smile | :)
QuestionRe: Quick repaints Pin
prasad_som15-Feb-07 19:53
prasad_som15-Feb-07 19:53 

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.