Re: [Dev-C++] Whoops - drawing in Windows
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Per W. <pw...@ia...> - 2002-10-25 08:10:18
|
It doesn't matter where you define it, as long as the compiler may see the pen when inside the draw code. However, if you keep a global pen, you must make sure that whenever the user is changing colour, line width etc, you have to unselect and free the old pen and create a new pen. /Per W |