Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Very early GUI stuff
#31
Code:
dim hControl as long
dim hBitmap as long

hControl = CreateWindowEx(0, "static",NULL,WS_CLIPSIBLINGS OR WS_CHILD OR WS_VISIBLE OR SS_BITMAP OR WS_TABSTOP, 10, 10, 32, 32, hWndMain, 111, 0, NULL)

hBitmap = LoadImage (0, "test.bmp", IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE OR LR_CREATEDIBSECTION)
hBitmap = CopyImage (hBitmap, IMAGE_BITMAP, 100, 100, LR_COPYRETURNORG)
SendMessage ( hControl, STM_SETIMAGE, IMAGE_BITMAP, hBitmap)
SetWindowPos ( hControl, HWND_TOP, 0, 0, 100, 100, SWP_DRAWFRAME)
Did somebody get this to work?
It's really strange, because I tried it with several other languages and it should work fine, but it doesn't Sad
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)