Click here to Skip to main content
15,913,325 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralIcon Import/Editor :: MFC Pin
valikac11-Oct-02 12:31
valikac11-Oct-02 12:31 
GeneralRe: Icon Import/Editor :: MFC Pin
Gary R. Wheeler11-Oct-02 15:56
Gary R. Wheeler11-Oct-02 15:56 
GeneralRe: Icon Import/Editor :: MFC Pin
valikac11-Oct-02 16:16
valikac11-Oct-02 16:16 
QuestionPermanent vs. Temporary DC's? Pin
Henry P.11-Oct-02 11:56
Henry P.11-Oct-02 11:56 
AnswerRe: Permanent vs. Temporary DC's? Pin
Neville Franks11-Oct-02 12:41
Neville Franks11-Oct-02 12:41 
GeneralRe: Permanent vs. Temporary DC's? Pin
Henry P.11-Oct-02 12:55
Henry P.11-Oct-02 12:55 
GeneralRe: Permanent vs. Temporary DC's? Pin
Neville Franks11-Oct-02 13:13
Neville Franks11-Oct-02 13:13 
AnswerRe: Permanent vs. Temporary DC's? Pin
Paul M Watt11-Oct-02 14:31
mentorPaul M Watt11-Oct-02 14:31 
You are safe to hold onto as many memory DCs as you would like. They are simply stored in memory, and the number of memory DCs are limited by the amount of memory on your system.

You should not hold onto Window DCs. In the Win9x OSs, there are only about eight window DCs that are available. So if you do not release the window DC, then unexpected things might start happening.

I am not sure of the limit in windows NT, however it is still not advisable to hold onto window DCs even in windows NT.

Yes it would be significantly slower to render a dib than a DDB. That is because the DDB is already formatted for the current device. In order to perform a bitblt you simply need to transfer an array of bits. A DIB needs to first be converted and color matched then transferred.

Good Luck.


Build a man a fire, and he will be warm for a day
Light a man on fire, and he will be warm for the rest of his life!

GeneralRe: Permanent vs. Temporary DC's? Pin
Henry P.11-Oct-02 15:05
Henry P.11-Oct-02 15:05 
GeneralRe: Permanent vs. Temporary DC's? Pin
Gary R. Wheeler11-Oct-02 16:02
Gary R. Wheeler11-Oct-02 16:02 
QuestionCFormView derived class w/o relying on the resource.h? Pin
dazinith11-Oct-02 10:31
dazinith11-Oct-02 10:31 
AnswerRe: CFormView derived class w/o relying on the resource.h? Pin
Chris Richardson11-Oct-02 11:26
Chris Richardson11-Oct-02 11:26 
Generalstd::vector question Pin
Rene De La Garza11-Oct-02 10:27
Rene De La Garza11-Oct-02 10:27 
GeneralRe: std::vector question Pin
Maximilien11-Oct-02 10:33
Maximilien11-Oct-02 10:33 
GeneralRe: std::vector question Pin
Daniel Turini11-Oct-02 10:31
Daniel Turini11-Oct-02 10:31 
GeneralCfg File Reading Pin
Anonymous11-Oct-02 10:26
Anonymous11-Oct-02 10:26 
GeneralRe: Cfg File Reading Pin
Maximilien11-Oct-02 10:31
Maximilien11-Oct-02 10:31 
GeneralRe: Cfg File Reading Pin
Anonymous11-Oct-02 10:41
Anonymous11-Oct-02 10:41 
GeneralTrying to findout Drive type from OS Path Pin
Xeena11-Oct-02 10:12
Xeena11-Oct-02 10:12 
GeneralRe: Trying to findout Drive type from OS Path Pin
Mike Nordell12-Oct-02 6:03
Mike Nordell12-Oct-02 6:03 
Generalrecordset ADO for an empty database Pin
ns11-Oct-02 10:15
ns11-Oct-02 10:15 
GeneralRe: recordset ADO for an empty database Pin
John M. Drescher11-Oct-02 10:25
John M. Drescher11-Oct-02 10:25 
GeneralRe: recordset ADO for an empty database Pin
Rene De La Garza11-Oct-02 10:24
Rene De La Garza11-Oct-02 10:24 
GeneralProblems with MRU Files Pin
José Luis Sogorb11-Oct-02 8:50
José Luis Sogorb11-Oct-02 8:50 
GeneralSendmessage Pin
Anthony988711-Oct-02 8:06
Anthony988711-Oct-02 8:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.