Click here to Skip to main content
15,927,514 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralBitmap and clipboard Pin
#realJSOP4-Oct-01 6:44
professional#realJSOP4-Oct-01 6:44 
GeneralRe: Bitmap and clipboard Pin
Chris Losinger4-Oct-01 7:00
professionalChris Losinger4-Oct-01 7:00 
GeneralRe: Bitmap and clipboard Pin
#realJSOP4-Oct-01 7:18
professional#realJSOP4-Oct-01 7:18 
GeneralRe: Bitmap and clipboard Pin
Chris Losinger4-Oct-01 7:29
professionalChris Losinger4-Oct-01 7:29 
GeneralRe: Bitmap and clipboard Pin
#realJSOP4-Oct-01 7:57
professional#realJSOP4-Oct-01 7:57 
GeneralRe: Bitmap and clipboard Pin
Chris Losinger4-Oct-01 7:59
professionalChris Losinger4-Oct-01 7:59 
GeneralRe: Bitmap and clipboard Pin
#realJSOP4-Oct-01 8:19
professional#realJSOP4-Oct-01 8:19 
GeneralRe: Bitmap and clipboard Pin
Chris Losinger4-Oct-01 8:23
professionalChris Losinger4-Oct-01 8:23 
sounds like you've got a DIB. have you tried displaying it (with something like StretchDIBits), just to be sure?

// Get source bitmap info
BITMAPINFO *pBMInfo = (LPBITMAPINFO)pDIB ;

// assumes a generic 24bit DIB
LPVOID lpDIBBits = (LPVOID)(pDIB + pBMInfo->bmiHeader.biSize);

// now blast it to the CDC passed in.
// lines returns the number of lines actually displayed
UINT32 lines = StretchDIBits(outHDC,
                     xPos, yPos,
                     outWidth, outHeight,
                     0,0,
                     inWidth,
                     inHeight,
                     lpDIBBits,
                     pBMInfo,
                     DIB_RGB_COLORS,
                     SRCCOPY);


that's the easiest way to tell if your DIB is correct/well-formed.

-c

------------------------------
Smaller Animals Software, Inc.
http://www.smalleranimals.com
GeneralRe: Bitmap and clipboard Pin
#realJSOP4-Oct-01 8:42
professional#realJSOP4-Oct-01 8:42 
GeneralRe: Bitmap and clipboard Pin
Chris Losinger4-Oct-01 8:45
professionalChris Losinger4-Oct-01 8:45 
GeneralRe: Bitmap and clipboard Pin
#realJSOP4-Oct-01 8:49
professional#realJSOP4-Oct-01 8:49 
GeneralRe: Bitmap and clipboard Pin
Tomasz Sowinski4-Oct-01 7:10
Tomasz Sowinski4-Oct-01 7:10 
GeneralRe: Bitmap and clipboard Pin
#realJSOP4-Oct-01 7:16
professional#realJSOP4-Oct-01 7:16 
GeneralRe: Bitmap and clipboard Pin
Tomasz Sowinski4-Oct-01 7:17
Tomasz Sowinski4-Oct-01 7:17 
QuestionMCI CD Audio Mount and Eject? Pin
Bryan Anslow4-Oct-01 6:10
Bryan Anslow4-Oct-01 6:10 
AnswerRe: MCI CD Audio Mount and Eject? Pin
Tomasz Sowinski4-Oct-01 6:24
Tomasz Sowinski4-Oct-01 6:24 
GeneralRe: MCI CD Audio Mount and Eject? Pin
Bryan Anslow9-Oct-01 3:35
Bryan Anslow9-Oct-01 3:35 
QuestionAgain: Are there any methods to construct a CFtpConnection object from a HINTERNET handle? Pin
Chaos Lawful4-Oct-01 5:20
Chaos Lawful4-Oct-01 5:20 
AnswerRe: Again: Are there any methods to construct a CFtpConnection object from a HINTERNET handle? Pin
NormDroid4-Oct-01 6:58
professionalNormDroid4-Oct-01 6:58 
GeneralRe: Again: Are there any methods to construct a CFtpConnection object from a HINTERNET handle? Pin
Chaos Lawful4-Oct-01 8:04
Chaos Lawful4-Oct-01 8:04 
GeneralDeleting files in a program Pin
Paresh Solanki4-Oct-01 4:39
Paresh Solanki4-Oct-01 4:39 
GeneralRe: Deleting files in a program Pin
Tomasz Sowinski4-Oct-01 4:44
Tomasz Sowinski4-Oct-01 4:44 
GeneralRe: Deleting files in a program Pin
Tomasz Sowinski4-Oct-01 4:48
Tomasz Sowinski4-Oct-01 4:48 
GeneralRe: Deleting files in a program Pin
Paresh Solanki4-Oct-01 5:42
Paresh Solanki4-Oct-01 5:42 
QuestionHow do I create a makefile from the command-line :confused: Pin
Belarophon4-Oct-01 3:21
Belarophon4-Oct-01 3: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.