Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / General / August 2004



Tip: Looking for answers? Try searching our database.

Window GDI API Question

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
uo - 31 Aug 2004 20:37 GMT
Is there a Windows API function that does the same thing as
Picture1.Refresh, using picture1's device context, i.e. hDC ???

Many Thanks,
Tom Esh - 31 Aug 2004 21:08 GMT
>Is there a Windows API function that does the same thing as
>Picture1.Refresh, using picture1's device context, i.e. hDC ???

Not with just a hDC. You'd have to get the hwnd it's assigned to first
(WindowFromDC). Then you could use UpdateWindow or InvalidateWindow.

-Tom
MVP - Visual Basic
(please post replies to the newsgroup)
uo - 31 Aug 2004 21:15 GMT
Thanks, this should do it.

> >Is there a Windows API function that does the same thing as
> >Picture1.Refresh, using picture1's device context, i.e. hDC ???
[quoted text clipped - 5 lines]
> MVP - Visual Basic
> (please post replies to the newsgroup)
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.