Click here to Skip to main content
15,917,176 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralMeeting troubles when using DeskBands. Pin
George Ma23-May-02 22:36
George Ma23-May-02 22:36 
GeneralRe: Meeting troubles when using DeskBands. Pin
Nish Nishant23-May-02 22:41
sitebuilderNish Nishant23-May-02 22:41 
GeneralRe: Meeting troubles when using DeskBands. Pin
George Ma23-May-02 22:48
George Ma23-May-02 22:48 
GeneralRe: Meeting troubles when using DeskBands. Pin
Nish Nishant23-May-02 23:03
sitebuilderNish Nishant23-May-02 23:03 
GeneralRe: Meeting troubles when using DeskBands. Pin
George Ma23-May-02 23:18
George Ma23-May-02 23:18 
GeneralRe: Meeting troubles when using DeskBands. Pin
Nish Nishant23-May-02 23:24
sitebuilderNish Nishant23-May-02 23:24 
GeneralMeeting troubles when using DeskBands. Pin
23-May-02 21:52
suss23-May-02 21:52 
QuestionSecond try... Accessing bitmap bits instead of TIFF image data? Pin
Ice-T.Polarbear23-May-02 21:48
Ice-T.Polarbear23-May-02 21:48 
Hi again!

Uhm... Apparently I'm not the only one not knowing how to directly access image data in a CImgEdit control. Wink | ;) (see former thread)

OK, so I thought of another method to do my task of en-/decrypting image data... I can easily copy the the TIFF image into clipboard and get it back from there as a bitmap...

The (so-highly-recommended-to-take-a-look-first :p ) MSDN library told me to use CBitmap::GetBitmapBits and CBitmap::SetBitmapBits to access bitmap image data. As I recognized that this doesn't work and SetBitmapBits just results in a beautifully-but-solely-filled-with-black-pixels bitmap I even found a notice at MSDN (after hard search of course!) that these functions are obsolete and should not be used! Mad | :mad:

The final hint: I should try GetDIBits/SetDIBits to access the bitmap bits. Nice idea... But I'm too dumb to get it work Frown | :(

So, can anyone give me structured information what I have to do in order to use these methods on a bitmap stored in a CBitmap object? All information I found in this and other forums and even (or better 'as expected') MSDN just confused me more than it helped. Confused | :confused:

Many thanks in advance!

Best regards,
Andreas Dilling
QuestionHow to transelate the following fprintf into a MessageBox Pin
chen23-May-02 21:28
chen23-May-02 21:28 
AnswerRe: How to transelate the following fprintf into a MessageBox Pin
Nish Nishant23-May-02 21:45
sitebuilderNish Nishant23-May-02 21:45 
AnswerRe: How to transelate the following fprintf into a MessageBox Pin
Fredrik Skog23-May-02 21:59
Fredrik Skog23-May-02 21:59 
AnswerRe: How to transelate the following fprintf into a MessageBox Pin
Ice-T.Polarbear23-May-02 22:01
Ice-T.Polarbear23-May-02 22:01 
AnswerRe: How to transelate the following fprintf into a MessageBox Pin
Ice-T.Polarbear23-May-02 22:07
Ice-T.Polarbear23-May-02 22:07 
GeneralRe: How to transelate the following fprintf into a MessageBox Pin
chen23-May-02 22:18
chen23-May-02 22:18 
GeneralRe: How to transelate the following fprintf into a MessageBox Pin
Nish Nishant23-May-02 22:40
sitebuilderNish Nishant23-May-02 22:40 
QuestionTimers in Worker threads? Pin
ramdili23-May-02 20:48
ramdili23-May-02 20:48 
AnswerRe: Timers in Worker threads? Pin
Sameer Maggon23-May-02 21:04
Sameer Maggon23-May-02 21:04 
GeneralActiveX ATL - Problem - ASP Pin
Sameer Maggon23-May-02 20:45
Sameer Maggon23-May-02 20:45 
GeneralOwnerdraw Pin
Jan van den Baard23-May-02 20:39
professionalJan van den Baard23-May-02 20:39 
Generala painful "select database" dialog... Pin
Atilla Selem23-May-02 20:34
Atilla Selem23-May-02 20:34 
GeneralRe: a painful "select database" dialog... Pin
Prem Kumar23-May-02 20:38
Prem Kumar23-May-02 20:38 
GeneralRe: a painful "select database" dialog... Pin
Atilla Selem23-May-02 21:23
Atilla Selem23-May-02 21:23 
GeneralRe: a painful "select database" dialog... Pin
Matt Gullett24-May-02 0:38
Matt Gullett24-May-02 0:38 
GeneralACCESS_MASK Pin
Mazdak23-May-02 20:14
Mazdak23-May-02 20:14 
GeneralRe: ACCESS_MASK Pin
PJ Arends23-May-02 20:21
professionalPJ Arends23-May-02 20:21 

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.