Click here to Skip to main content
15,899,313 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionIcon not showing in CStatic Control Pin
Tom Moore22-Jan-06 10:09
Tom Moore22-Jan-06 10:09 
AnswerRe: Icon not showing in CStatic Control Pin
PJ Arends22-Jan-06 11:21
professionalPJ Arends22-Jan-06 11:21 
GeneralRe: Icon not showing in CStatic Control Pin
Ryan Binns22-Jan-06 17:37
Ryan Binns22-Jan-06 17:37 
AnswerRe: Icon not showing in CStatic Control Pin
Ryan Binns22-Jan-06 17:37
Ryan Binns22-Jan-06 17:37 
Questionwhat do you think of my message loop for DirectX proj Pin
tom_dx22-Jan-06 4:57
tom_dx22-Jan-06 4:57 
AnswerRe: what do you think of my message loop for DirectX proj Pin
Cedric Moonen22-Jan-06 7:29
Cedric Moonen22-Jan-06 7:29 
GeneralRe: what do you think of my message loop for DirectX proj Pin
tom_dx22-Jan-06 7:59
tom_dx22-Jan-06 7:59 
AnswerRe: what do you think of my message loop for DirectX proj Pin
Stephen Hewitt22-Jan-06 11:19
Stephen Hewitt22-Jan-06 11:19 
Because you're using PeekMessage rather then GetMessage your loop spins in the outer while loop even when there is no message to process. Unless you have an else not show in the code above in the if ( PeekMessage( &msg, NULL, 0, 0, PM_REMOVE ) ) statement this code is needlessly inefficient. I would suggest you replace it with a GetMessage and watch the CPU usage go down.

Steve
GeneralRe: what do you think of my message loop for DirectX proj Pin
tom_dx22-Jan-06 12:36
tom_dx22-Jan-06 12:36 
GeneralRe: what do you think of my message loop for DirectX proj Pin
Stephen Hewitt22-Jan-06 12:41
Stephen Hewitt22-Jan-06 12:41 
QuestionReplacing ATL Pin
Jim Crafton22-Jan-06 3:15
Jim Crafton22-Jan-06 3:15 
AnswerRe: Replacing ATL Pin
tom_dx22-Jan-06 5:01
tom_dx22-Jan-06 5:01 
GeneralRe: Replacing ATL Pin
S. Senthil Kumar22-Jan-06 5:27
S. Senthil Kumar22-Jan-06 5:27 
GeneralRe: Replacing ATL Pin
tom_dx22-Jan-06 5:40
tom_dx22-Jan-06 5:40 
GeneralRe: Replacing ATL Pin
QuickDeveloper22-Jan-06 21:25
QuickDeveloper22-Jan-06 21:25 
GeneralRe: Replacing ATL Pin
tom_dx23-Jan-06 2:06
tom_dx23-Jan-06 2:06 
AnswerRe: Replacing ATL Pin
Kevin McFarlane22-Jan-06 6:19
Kevin McFarlane22-Jan-06 6:19 
AnswerRe: Replacing ATL Pin
peterchen22-Jan-06 7:32
peterchen22-Jan-06 7:32 
GeneralRe: Replacing ATL Pin
Jim Crafton22-Jan-06 7:36
Jim Crafton22-Jan-06 7:36 
AnswerRe: Replacing ATL Pin
Nemanja Trifunovic23-Jan-06 7:43
Nemanja Trifunovic23-Jan-06 7:43 
GeneralRe: Replacing ATL Pin
Jim Crafton23-Jan-06 8:45
Jim Crafton23-Jan-06 8:45 
QuestionSave series of images to animated gif file! Pin
kanscx22-Jan-06 2:46
kanscx22-Jan-06 2:46 
GeneralARRAY ADT + TEXT Pin
pvatanpour21-Jan-06 21:27
pvatanpour21-Jan-06 21:27 
QuestionChanging IP, gateway, etc programatically Pin
Mutty21-Jan-06 15:50
Mutty21-Jan-06 15:50 
AnswerRe: Changing IP, gateway, etc programatically Pin
Magnus Westin21-Jan-06 23:52
Magnus Westin21-Jan-06 23:52 

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.