weird...i tried defining winver in my program and it said it was already defined in winuser.h, but it was defined as 0x0400 so i just changed the 4 to a 5 and it compiles. however, it doesn't animate the window. i created the controls and load the images in them in the WM_CREATE case
Code:
bRpsLR[0] = (HBITMAP)LoadImage(GetModuleHandle(0), MAKEINTRESOURCE(RPS_LEFT), IMAGE_BITMAP, 200, 150, 0);
bRpsLR[1] = (HBITMAP)LoadImage(GetModuleHandle(0), MAKEINTRESOURCE(RPS_RIGHT), IMAGE_BITMAP, 200, 150, 0);
for (i = 0; i < 2; i++)
{
SendMessage(GetDlgItem(hwnd, i+407), STM_SETIMAGE, IMAGE_BITMAP, (LPARAM)bRpsLR[i]);
}
and that works. and when i check GetLastError() it tells me "AnimateWindow failed with error 0: The operation completed successfully." so i'm thinking i'm not doing something right..? lol
thanks :]
// i just tried changing my AW_SLIDE | AW_VER_POSITIVE to AW_HIDE | AW_CENTER and that worked. what i want it to do is even though the control is already there, i'd like it to go away and then slide in from the top. ? lol