Click here to Skip to main content
15,906,708 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Newbie Question about Classes Pin
V.17-Mar-05 2:59
professionalV.17-Mar-05 2:59 
GeneralRe: Newbie Question about Classes Pin
ThatsAlok17-Mar-05 3:05
ThatsAlok17-Mar-05 3:05 
GeneralRe: Newbie Question about Classes Pin
V.17-Mar-05 3:18
professionalV.17-Mar-05 3:18 
GeneralRe: Newbie Question about Classes Pin
ThatsAlok17-Mar-05 18:41
ThatsAlok17-Mar-05 18:41 
Generalrefresh hide window Pin
pl-isa17-Mar-05 1:07
pl-isa17-Mar-05 1:07 
GeneralRe: refresh hide window Pin
Ravi Bhavnani17-Mar-05 1:32
professionalRavi Bhavnani17-Mar-05 1:32 
GeneralRe: refresh hide window Pin
pl-isa17-Mar-05 3:01
pl-isa17-Mar-05 3:01 
GeneralRe: refresh hide window Pin
Ravi Bhavnani17-Mar-05 8:01
professionalRavi Bhavnani17-Mar-05 8:01 
pl-isa wrote:
but I thought it is only when the application is opened for the first time... no??


Actually, WM_SHOWWINDOW is sent whenever the window is shown, hidden, minimized, maximized or restored, not only at startup. But you're right - what I should have said is, add these lines to your OnPaint() handler:
CMyDialog::OnPaint (...)
{
  m_myPicStaticCtrl.Invalidate();
  m_myPicStaticCtrl.UpdateWindow();
}
This should force an immediate repaint of the static control. If this doesn't work, I'd put TRACE() statements in your static control's OnPaint() handler to see if it's doing anything funky. It might be getting called, but not painting after the first invocation.

/ravi

My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com

GeneralRe: refresh hide window Pin
eli1502197917-Mar-05 1:59
eli1502197917-Mar-05 1:59 
GeneralRe: refresh hide window Pin
pl-isa17-Mar-05 3:06
pl-isa17-Mar-05 3:06 
GeneralHelp for Compiled HTML (CHM)Viewer Pin
anukrati17-Mar-05 1:03
anukrati17-Mar-05 1:03 
GeneralRe: Help for Compiled HTML (CHM)Viewer Pin
ThatsAlok17-Mar-05 1:18
ThatsAlok17-Mar-05 1:18 
GeneralHere is Sample Source code for CHM Pin
ThatsAlok18-Mar-05 22:38
ThatsAlok18-Mar-05 22:38 
GeneralRe: Help for Compiled HTML (CHM)Viewer Pin
Sam Jiang13-Apr-05 22:16
Sam Jiang13-Apr-05 22:16 
GeneralLibrary for MP3 Editing Pin
fishwolf17-Mar-05 0:40
fishwolf17-Mar-05 0:40 
GeneralRe: Library for MP3 Editing Pin
Ravi Bhavnani17-Mar-05 1:40
professionalRavi Bhavnani17-Mar-05 1:40 
GeneralType Conversion from std::string to string/char/..... Pin
Vijay Vamsi17-Mar-05 0:39
Vijay Vamsi17-Mar-05 0:39 
GeneralRe: Type Conversion from std::string to string/char/..... Pin
ThatsAlok17-Mar-05 0:45
ThatsAlok17-Mar-05 0:45 
QuestionHOW DO I CENTER TEXT IN A TEXT BOX???? Pin
iddon1717-Mar-05 0:21
iddon1717-Mar-05 0:21 
AnswerRe: HOW DO I CENTER TEXT IN A TEXT BOX???? Pin
ThatsAlok17-Mar-05 0:40
ThatsAlok17-Mar-05 0:40 
GeneralRe: HOW DO I CENTER TEXT IN A TEXT BOX???? Pin
iddon1717-Mar-05 2:36
iddon1717-Mar-05 2:36 
GeneralRe: HOW DO I CENTER TEXT IN A TEXT BOX???? Pin
David Crow17-Mar-05 2:40
David Crow17-Mar-05 2:40 
AnswerRe: HOW DO I CENTER TEXT IN A TEXT BOX???? Pin
David Crow17-Mar-05 2:46
David Crow17-Mar-05 2:46 
Generalchange property pages within property sheet dynamically Pin
rgchezhian17-Mar-05 0:11
rgchezhian17-Mar-05 0:11 
GeneralRe: change property pages within property sheet dynamically Pin
David Crow17-Mar-05 2:50
David Crow17-Mar-05 2:50 

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.