Jump to content


Photo

Drawing Problem


  • Please log in to reply
4 replies to this topic

#1 jakevfr

jakevfr

    Young Padawan

  • Members
  • Pip
  • 40 posts

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)
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.

#2 Indigo

Indigo

    Official Alien

  • Members
  • PipPipPip
  • 617 posts
  • Gender:Male
  • Location:Trondheim, Norway
  • Interests:Computing in general, especially design and programming of all kinds.

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 :huh:

#3 jakevfr

jakevfr

    Young Padawan

  • Members
  • Pip
  • 40 posts

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 The_pro_designer

The_pro_designer

    Jedi In Training

  • Members
  • PipPip
  • 316 posts
  • Gender:Male
  • Location:South Carolina, USA!
  • Interests:I am a Graphics designer, I work at Target, and I have a beautiful girlfriend names Mckenna. <3 Thats about it.

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 Dezept1p

Dezept1p

    Young Padawan

  • Members
  • Pip
  • 85 posts
  • Gender:Male
  • Location:www.prohoney.com
  • Interests:I like web-design, Rap and break dance<br />www.prohoney.com my web design studio.<br />Will be :)

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, )




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users