Jump to content
  • Advertisement
Sign in to follow this  
Emexus

win32 api redrawing/refreshing a window

This topic is 5478 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, Does anyone know if there's a win32 api function call to redraw/update a window (e.g. a edit control) similar to InvalidateRect? I was hopping there would be something available like this InvalidateWindow(hWnd, IDC_CLIENT_OUTPUT, TRUE); but i haven't been able to find anything. cheers

Share this post


Link to post
Share on other sites
Advertisement

UpdateWindow(GetDlgItem(hDlg, IDC_CONTROL));


Might want to check so that GetDlgItem returns a window. This will post a WM_PAINT to the control.

Share this post


Link to post
Share on other sites
You can also pass that handle to InvalidateRect. Basically, GetDlgItem will return a HWND to a control in the specified dialog.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!