bool CreateWorkSpace(HWND hwnd) { RECT crect; GetClientRect(hwnd,&crect); short width = crect.right - crect.left; short height = crect.bottom - crect.top; HBRUSH hBrush; HDC hDC; hBrush = CreateSolidBrush(RGB(255,255,255)); hDC = GetDC(hwnd); Rectangle(hDC, 5, 5, 150, 150); ReleaseDC(hwnd, hDC); DeleteObject(hBrush); }This is called in the WM_PAINT part of a normal window.
Drawing Problem
Started by
jakevfr
, Aug 04 2006 04:45 PM
4 replies to this topic
#1
Posted 04 August 2006 - 04:45 PM
Why does this screw up my computer? (what I mean is whenever I run it it freezes for a few seconds)
#2
Posted 04 August 2006 - 05:52 PM
What kind of a computer are you on? If it's really slow, that might be the reason. If that's not it, I have no idea, sorry
#3
Posted 07 August 2006 - 10:16 AM
a windows 98, but I've made a few games on it with far more complicated graphics than that and it works just fine...
#4
Posted 13 August 2006 - 02:43 AM
Is it got any updated or different versions of the code they may not be avaliable to 98?
#5
Posted 31 August 2006 - 01:42 AM
windows 98 is very old and update for windows microsoft (it lets out)
( no more updates for 98, )
( no more updates for 98, )
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users