Click here to Skip to main content
16,018,202 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: AFX_MANAGE_STATE in CMyThread::InitInstance()? Pin
led mike24-Jan-08 10:19
led mike24-Jan-08 10:19 
GeneralRe: AFX_MANAGE_STATE in CMyThread::InitInstance()? Pin
Mark Salsbery24-Jan-08 10:26
Mark Salsbery24-Jan-08 10:26 
GeneralRe: AFX_MANAGE_STATE in CMyThread::InitInstance()? Pin
led mike24-Jan-08 10:52
led mike24-Jan-08 10:52 
GeneralRe: AFX_MANAGE_STATE in CMyThread::InitInstance()? Pin
Mark Salsbery24-Jan-08 11:01
Mark Salsbery24-Jan-08 11:01 
GeneralRe: AFX_MANAGE_STATE in CMyThread::InitInstance()? Pin
Wes Jones24-Jan-08 10:40
Wes Jones24-Jan-08 10:40 
GeneralRe: AFX_MANAGE_STATE in CMyThread::InitInstance()? Pin
Mark Salsbery24-Jan-08 10:43
Mark Salsbery24-Jan-08 10:43 
General16-24 Bit image issue for MFC Pin
sunny.rana24-Jan-08 7:05
sunny.rana24-Jan-08 7:05 
GeneralRe: 16-24 Bit image issue for MFC Pin
Mark Salsbery24-Jan-08 7:28
Mark Salsbery24-Jan-08 7:28 
Since you're using CImage, you can simplify this and let the CImage class do the work.

Create a CImage object and use its Create() or CreateEx() methods to
create the DIB section. Then you can use the GetBits() and GetPitch()
methods to copy your pixel data into the DIB section.

Review the BITMAPINFOHEADER documentation (see biBitCount) for 16-bit support
in DIBs. Note 16-bit grayscale is not supported.

24 bit DIBs are straight-forward.

Mark

Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

GeneralRe: 16-24 Bit image issue for MFC Pin
sunny.rana25-Jan-08 9:39
sunny.rana25-Jan-08 9:39 
GeneralRe: 16-24 Bit image issue for MFC Pin
Mark Salsbery27-Jan-08 7:06
Mark Salsbery27-Jan-08 7:06 
GeneralDialog Displays Differently Pin
Reagan Conservative24-Jan-08 6:47
Reagan Conservative24-Jan-08 6:47 
QuestionRe: Dialog Displays Differently Pin
David Crow24-Jan-08 7:31
David Crow24-Jan-08 7:31 
GeneralRe: Dialog Displays Differently Pin
Reagan Conservative24-Jan-08 8:17
Reagan Conservative24-Jan-08 8:17 
QuestionRe: Dialog Displays Differently Pin
David Crow24-Jan-08 9:17
David Crow24-Jan-08 9:17 
GeneralRe: Dialog Displays Differently Pin
Reagan Conservative24-Jan-08 9:19
Reagan Conservative24-Jan-08 9:19 
QuestionRe: Dialog Displays Differently Pin
David Crow24-Jan-08 9:23
David Crow24-Jan-08 9:23 
GeneralRe: Dialog Displays Differently Pin
Reagan Conservative24-Jan-08 9:47
Reagan Conservative24-Jan-08 9:47 
QuestionRe: Dialog Displays Differently Pin
David Crow24-Jan-08 9:52
David Crow24-Jan-08 9:52 
GeneralRe: Dialog Displays Differently Pin
Reagan Conservative24-Jan-08 10:14
Reagan Conservative24-Jan-08 10:14 
QuestionRe: Dialog Displays Differently Pin
David Crow24-Jan-08 10:18
David Crow24-Jan-08 10:18 
GeneralRe: Dialog Displays Differently Pin
Reagan Conservative24-Jan-08 10:22
Reagan Conservative24-Jan-08 10:22 
QuestionRe: Dialog Displays Differently Pin
David Crow24-Jan-08 10:32
David Crow24-Jan-08 10:32 
GeneralRe: Dialog Displays Differently Pin
Reagan Conservative24-Jan-08 10:48
Reagan Conservative24-Jan-08 10:48 
QuestionRe: Dialog Displays Differently Pin
David Crow24-Jan-08 11:01
David Crow24-Jan-08 11:01 
GeneralRe: Dialog Displays Differently Pin
Reagan Conservative24-Jan-08 11:10
Reagan Conservative24-Jan-08 11:10 

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.