Click here to Skip to main content
15,909,897 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Creating a simple border on a dialog Pin
BrianBoru4-Feb-05 3:35
BrianBoru4-Feb-05 3:35 
GeneralRe: Creating a simple border on a dialog Pin
David Crow4-Feb-05 3:39
David Crow4-Feb-05 3:39 
GeneralRe: Creating a simple border on a dialog Pin
Maximilien4-Feb-05 3:41
Maximilien4-Feb-05 3:41 
GeneralRe: Creating a simple border on a dialog Pin
BrianBoru4-Feb-05 4:05
BrianBoru4-Feb-05 4:05 
GeneralRe: Creating a simple border on a dialog Pin
Ravi Bhavnani4-Feb-05 8:02
professionalRavi Bhavnani4-Feb-05 8:02 
GeneralRe: Creating a simple border on a dialog Pin
BrianBoru6-Feb-05 22:57
BrianBoru6-Feb-05 22:57 
GeneralPicture dissapearing Pin
monageasmear4-Feb-05 2:24
monageasmear4-Feb-05 2:24 
GeneralRe: Picture dissapearing Pin
Bob Ciora4-Feb-05 2:51
Bob Ciora4-Feb-05 2:51 
Windows is sending you a WM_PAINT message when the other application is moved out of the way. You're probably not processing this message. You'll have to get used to the event-driven nature of windows applications.

My suspicion is that you load the image and render it within the same code pathway. What you may want to do, in the interim, is move the code that draws the image into its own function. Then, instead of calling that imaging function after you load it, just make a call to InvalidateRect(<your window's handle>, NULL, FALSE);. This will cause a WM_PAINT message to be generated for your window.

Then add a handler for the WM_PAINT message. In this handler, call your image rendering function. This way, you cover all of the cases where your window may need redrawing.



Bob Ciora
Questionstack or free store? Pin
Martin Ostermayer4-Feb-05 2:13
Martin Ostermayer4-Feb-05 2:13 
AnswerRe: stack or free store? Pin
Nemanja Trifunovic4-Feb-05 2:24
Nemanja Trifunovic4-Feb-05 2:24 
GeneralRe: stack or free store? Pin
Martin Ostermayer4-Feb-05 3:37
Martin Ostermayer4-Feb-05 3:37 
Questionhow to add my own toolbar Pin
bilas4-Feb-05 2:08
bilas4-Feb-05 2:08 
GeneralRelease Mode error Pin
aj16824-Feb-05 1:57
aj16824-Feb-05 1:57 
GeneralRe: Release Mode error Pin
Bob Ciora4-Feb-05 2:56
Bob Ciora4-Feb-05 2:56 
GeneralRelease Mode Errors Pin
aj16824-Feb-05 1:54
aj16824-Feb-05 1:54 
GeneralRe: Release Mode Errors Pin
Ravi Bhavnani4-Feb-05 8:00
professionalRavi Bhavnani4-Feb-05 8:00 
GeneralLDAP Pin
Anthony_Yio4-Feb-05 1:06
Anthony_Yio4-Feb-05 1:06 
GeneralRe: LDAP Pin
Antony M Kancidrowski4-Feb-05 1:54
Antony M Kancidrowski4-Feb-05 1:54 
GeneralRe: LDAP Pin
Anthony_Yio4-Feb-05 17:01
Anthony_Yio4-Feb-05 17:01 
GeneralGetWindowOrg fails..my metafile export is not working.... Pin
Dimitris Vikeloudas4-Feb-05 0:25
Dimitris Vikeloudas4-Feb-05 0:25 
Question. MAPI Error ? Pin
im4help3-Feb-05 23:35
im4help3-Feb-05 23:35 
AnswerRe: . MAPI Error ? Pin
Antony M Kancidrowski4-Feb-05 1:59
Antony M Kancidrowski4-Feb-05 1:59 
GeneralAlt + Tab Icon Pin
shiraztk3-Feb-05 23:33
shiraztk3-Feb-05 23:33 
QuestionHow can i parse a command line in an SDI application? Pin
IronMike3-Feb-05 23:32
IronMike3-Feb-05 23:32 
AnswerRe: How can i parse a command line in an SDI application? Pin
Anthony_Yio4-Feb-05 0:54
Anthony_Yio4-Feb-05 0:54 

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.