![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
SEXY SHOELESS GOD OF WAR!
![]() Join Date: Jun 2005
Location: Wet west coast of Canada
Posts: 1,290
Rep Power: 5
![]() |
class/private DCs with eMbedded Visual C++
I was doing some programming for my PocketPC a short while back, and I noticed that I can't create a window using either the CS_CLASSDC or CS_OWNDC styles. I was wondering if there was perhaps some alternate way to do this, as I'd like to avoid getting/releasing the device context with each rendering cycle.
__________________
Java? Rant? Me? Noooo.... |
|
|
|
|
|
#2 |
|
Programmer
Join Date: Oct 2005
Location: UK, South West
Posts: 33
Rep Power: 0
![]() |
Hmm ce windows i presume? yeah any ways have you tried the CWnd commands?
If not have a look at: http://msdn.microsoft.com/library/de...m/cwnd_168.asp Sorry theres far tooo much info on this subject to reply here.
__________________
The GNU documentation says that this bit is set when the stream is "unusable". Presumably the intent is that once this bit becomes set, all bets are off on that stream forever. |
|
|
|
|
|
#3 |
|
SEXY SHOELESS GOD OF WAR!
![]() Join Date: Jun 2005
Location: Wet west coast of Canada
Posts: 1,290
Rep Power: 5
![]() |
I prefer using the raw API, rather than the MFC classes. There are a number of reasons for this, such as a) the MFC implementation for WinCE is not as rich as that for desktop Windows, b) I like to know exactly what's happening in my code, and MFC hides a lot of details, and c) I want to be able to write programs which compile with minimal changes under both eVC++ and, say, DevC++, and DevC++ lacks the MFC libs.
That said, since MFC is based on the raw API, it won't be using class/private DCs if the raw API doesn't support them. Hence, every time your CWnd object redraws itself, it'd need to get a common DC. I wanted to avoid this because it's less efficient than a DC that sticks around, and because I don't want to have to restore the attributes of the DC every cycle, as is necessary with common DCs.
__________________
Java? Rant? Me? Noooo.... |
|
|
|
|
|
#4 |
|
Programming Guru
![]() Join Date: Jun 2005
Location: elemental plane
Posts: 1,429
Rep Power: 5
![]() |
SaveDC() doesnt work either?
__________________
"Employ your time in improving yourself by other men's writings, so that you shall gain easily what others have labored hard for." -- Socrates |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|