Click here to Skip to main content
16,011,538 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Sending a raw UDP packet from win9x Pin
Kuniva15-Jun-03 22:37
Kuniva15-Jun-03 22:37 
GeneralRe: Sending a raw UDP packet from win9x Pin
JohnnyG16-Jun-03 3:09
JohnnyG16-Jun-03 3:09 
GeneralRe: Sending a raw UDP packet from win9x Pin
Kuniva16-Jun-03 6:05
Kuniva16-Jun-03 6:05 
GeneralHelp me, Full Owner Draw CEdit Control Pin
Anonymous15-Jun-03 3:59
Anonymous15-Jun-03 3:59 
GeneralRe: Help me, Full Owner Draw CEdit Control Pin
Iain Clarke, Warrior Programmer15-Jun-03 5:35
Iain Clarke, Warrior Programmer15-Jun-03 5:35 
GeneralRe: Help me, Full Owner Draw CEdit Control Pin
zjkw15-Jun-03 6:16
zjkw15-Jun-03 6:16 
GeneralDIBs and BMP's Pin
Tommy2k15-Jun-03 2:41
Tommy2k15-Jun-03 2:41 
GeneralRe: DIBs and BMP's Pin
Gary R. Wheeler15-Jun-03 3:07
Gary R. Wheeler15-Jun-03 3:07 
The following steps should do it:
  1. Create a bitmap compatible with the screen device context.
  2. Create a memory device context compatible with the screen.
  3. Select the bitmap created in step 1 into the DC created in step 2. Be sure to save the return value, so you can restore the original bitmap.
  4. Draw the PNG into the memory device context using StretchDIBits, or whatever's appropriate.
  5. Restore the original bitmap into the memory device context. This 'detaches' the bitmap created in step 1 from the memory device context.
The bitmap created in step 1 now contains the image from the PNG, rendered in a fashion that's compatible with the screen. You can then use SetBitmap to display the image in the static controls in your dialog.


Software Zen: delete this;
GeneralRe: DIBs and BMP's Pin
Tommy2k15-Jun-03 4:35
Tommy2k15-Jun-03 4:35 
GeneralRe: DIBs and BMP's Pin
Ryan Binns15-Jun-03 5:01
Ryan Binns15-Jun-03 5:01 
GeneralRe: DIBs and BMP's Pin
Ryan Binns15-Jun-03 3:08
Ryan Binns15-Jun-03 3:08 
GeneralRe: DIBs and BMP's Pin
Gary R. Wheeler15-Jun-03 3:30
Gary R. Wheeler15-Jun-03 3:30 
GeneralRe: DIBs and BMP's Pin
Ryan Binns15-Jun-03 3:40
Ryan Binns15-Jun-03 3:40 
GeneralRe: DIBs and BMP's Pin
Tommy2k15-Jun-03 4:43
Tommy2k15-Jun-03 4:43 
GeneralRe: DIBs and BMP's Pin
Ryan Binns15-Jun-03 4:53
Ryan Binns15-Jun-03 4:53 
GeneralRe: DIBs and BMP's Pin
Tommy2k15-Jun-03 5:08
Tommy2k15-Jun-03 5:08 
GeneralGetFieldValue and Thread ... Pin
Hadi Rezaee15-Jun-03 2:29
Hadi Rezaee15-Jun-03 2:29 
GeneralA modal dlg in muli-thread Pin
FlyingDancer15-Jun-03 2:28
FlyingDancer15-Jun-03 2:28 
GeneralRe: A modal dlg in muli-thread Pin
Gary R. Wheeler15-Jun-03 3:14
Gary R. Wheeler15-Jun-03 3:14 
GeneralRe: A modal dlg in muli-thread Pin
FlyingDancer15-Jun-03 3:27
FlyingDancer15-Jun-03 3:27 
GeneralRe: A modal dlg in muli-thread Pin
Gary R. Wheeler15-Jun-03 3:34
Gary R. Wheeler15-Jun-03 3:34 
GeneralRe: A modal dlg in muli-thread Pin
FlyingDancer15-Jun-03 3:43
FlyingDancer15-Jun-03 3:43 
Generaldrag and drop Pin
shanila15-Jun-03 0:56
shanila15-Jun-03 0:56 
QuestionWhy won't CStatic paint? Pin
murdoc515014-Jun-03 23:45
murdoc515014-Jun-03 23:45 
AnswerRe: Why won't CStatic paint? Pin
Stan the man15-Jun-03 2:34
Stan the man15-Jun-03 2:34 

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.