Results 1 to 2 of 2

Thread: C++ equivalents of VB functions/methods

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2001
    Location
    Sterling Heights, MI, USA
    Posts
    11

    Exclamation 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.

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    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
  •  



Click Here to Expand Forum to Full Width