|
-
Jul 6th, 2001, 08:46 AM
#1
Thread Starter
New Member
C++ equivalents of VB functions/methods
I recently got in to programming Win32 apps in C++. I am very new to this. I understand the basics, but there are a few things I used to do in VB that I would like to do in C++.
For example:
I want to have a window that I can use FillRgn and FrameRgn on. In VB, I could simply set the AutoRedraw to True. Is there an equivalent window style to use in C++?
Also, does UpdateWindow(hwnd) perform the same function as Me.Refresh?
Any help would be greatly appreciated.
-
Jul 6th, 2001, 12:05 PM
#2
Monday Morning Lunatic
When registering your window class, use the CS_SAVEBITS class style. That should work although there have been problems with it before.
UpdateWindow invalidates the entire client region and requests another WM_PAINT message, so yes.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|