Click here to Skip to main content
15,915,508 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralScroll bars! Pin
wilche6-Jun-02 15:31
wilche6-Jun-02 15:31 
GeneralRe: Scroll bars! Pin
Ernest Laurentin6-Jun-02 19:44
Ernest Laurentin6-Jun-02 19:44 
GeneralRe: Scroll bars! Pin
wilche10-Jun-02 16:15
wilche10-Jun-02 16:15 
Generalgrid column resize Pin
BlackDogEngineering6-Jun-02 14:10
BlackDogEngineering6-Jun-02 14:10 
General_variant_t vs VARIANT Pin
6-Jun-02 13:11
suss6-Jun-02 13:11 
GeneralRe: _variant_t vs VARIANT Pin
Christian Graus6-Jun-02 13:20
protectorChristian Graus6-Jun-02 13:20 
GeneralRe: _variant_t vs VARIANT Pin
Paul M Watt6-Jun-02 17:40
mentorPaul M Watt6-Jun-02 17:40 
GeneralBitmap to buffer to display Pin
Guibz6-Jun-02 12:14
Guibz6-Jun-02 12:14 
Hi,
I have problems converting a bitmap to buffer
and displaying it

I create my hdc,
I use CreateCompatibleBitmap(),
I FillRect() with a color,
I use the function GetDIBits(...)?

GetDIBits(
MemDC,
SaveBitmap,
0,
(WORD) pvi->bmiHeader.biHeight,
pData,
pbi,
DIB_RGB_COLORS);

to put the bit map into my buffer (BYTE pData) and i'm
missing something to display it to screen

I know i can display a red colored background
using :

prgb = (RGBTRIPLE*) pData;
for (iPixel = 0; iPixel < numPixels; iPixel++, prgb++)
{
prgb->rgbtRed = 255;
prgb->rgbtGreen = 0;
prgb->rgbtBlue = 0;
}

but a non uniform bitmap???? Confused | :confused:

Guibz
sguibord@aquadata.com
GeneralRe: Bitmap to buffer to display Pin
Christian Graus6-Jun-02 13:00
protectorChristian Graus6-Jun-02 13:00 
Questionhow to capture the screen efficiently? Pin
6-Jun-02 12:13
suss6-Jun-02 12:13 
AnswerRe: how to capture the screen efficiently? Pin
Paul M Watt6-Jun-02 17:45
mentorPaul M Watt6-Jun-02 17:45 
AnswerRe: how to capture the screen efficiently? Pin
Mike Nordell7-Jun-02 1:54
Mike Nordell7-Jun-02 1:54 
QuestionHow do i convert char * to LPOLESTR? Pin
redeemer6-Jun-02 11:27
redeemer6-Jun-02 11:27 
AnswerRe: How do i convert char * to LPOLESTR? Pin
Christian Graus6-Jun-02 11:40
protectorChristian Graus6-Jun-02 11:40 
GeneralRe: How do i convert char * to LPOLESTR? Pin
redeemer6-Jun-02 12:52
redeemer6-Jun-02 12:52 
GeneralRe: How do i convert char * to LPOLESTR? Pin
Christian Graus6-Jun-02 12:59
protectorChristian Graus6-Jun-02 12:59 
GeneralRe: How do i convert char * to LPOLESTR? Pin
redeemer6-Jun-02 13:01
redeemer6-Jun-02 13:01 
GeneralRe: How do i convert char * to LPOLESTR? Pin
Christian Graus6-Jun-02 13:18
protectorChristian Graus6-Jun-02 13:18 
GeneralRe: How do i convert char * to LPOLESTR? Pin
Ernest Laurentin6-Jun-02 19:26
Ernest Laurentin6-Jun-02 19:26 
GeneralDrawing tool Pin
Haakon S.6-Jun-02 10:28
Haakon S.6-Jun-02 10:28 
GeneralRe: Drawing tool Pin
Paul M Watt6-Jun-02 17:48
mentorPaul M Watt6-Jun-02 17:48 
GeneralRe: Drawing tool Pin
Haakon S.6-Jun-02 18:54
Haakon S.6-Jun-02 18:54 
GeneralRe: Drawing tool Pin
Paul M Watt6-Jun-02 19:45
mentorPaul M Watt6-Jun-02 19:45 
QuestionRelease mode TRACE? Pin
clintsinger6-Jun-02 10:16
clintsinger6-Jun-02 10:16 
AnswerRe: Release mode TRACE? Pin
John M. Drescher6-Jun-02 10:15
John M. Drescher6-Jun-02 10:15 

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.