Jump to content

Updating a picture control without a file


SmiLe
 Share

Recommended Posts

Hi again Zedna :)

Also from moving the GUIRegisterMsg($WM_PAINT, "WM_PAINT") to after the GUISetState() then the image isn't displayed till the window is tampered with.

$hGUI = GUICreate("My GUI", 400, 300, -1, -1, $WS_SIZEBOX)
_GDIPLUS_Startup () 
          $hGraphics = _GDIPLUS_GraphicsCreateFromHWND ($hGUI)
$hImage = _GDIPLUS_BitmapCreateFromHBITMAP ($hBitmap)

GUIRegisterMsg($WM_PAINT, "WM_PAINT")
GUISetState()

EDIT: But you are right about resizing problem

Edited by Zedna
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...