01-26-2005, 01:57 AM
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)
It's really strange, because I tried it with several other languages and it should work fine, but it doesn't