Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Oct 20th, 2005, 7:28 AM   #1
lectricpharaoh
SEXY SHOELESS GOD OF WAR!
 
lectricpharaoh's Avatar
 
Join Date: Jun 2005
Location: Wet west coast of Canada
Posts: 1,290
Rep Power: 5 lectricpharaoh will become famous soon enough
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....
lectricpharaoh is offline   Reply With Quote
Old Oct 20th, 2005, 8:52 AM   #2
BadBit
Programmer
 
BadBit's Avatar
 
Join Date: Oct 2005
Location: UK, South West
Posts: 33
Rep Power: 0 BadBit is on a distinguished road
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.
BadBit is offline   Reply With Quote
Old Oct 20th, 2005, 10:06 PM   #3
lectricpharaoh
SEXY SHOELESS GOD OF WAR!
 
lectricpharaoh's Avatar
 
Join Date: Jun 2005
Location: Wet west coast of Canada
Posts: 1,290
Rep Power: 5 lectricpharaoh will become famous soon enough
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....
lectricpharaoh is offline   Reply With Quote
Old Oct 23rd, 2005, 5:33 PM   #4
nnxion
Programming Guru
 
nnxion's Avatar
 
Join Date: Jun 2005
Location: elemental plane
Posts: 1,429
Rep Power: 5 nnxion is on a distinguished road
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
nnxion is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 11:29 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC