Click here to Skip to main content
15,913,101 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralID3 Pin
qdping9-Dec-03 19:28
qdping9-Dec-03 19:28 
GeneralRe: ID3 Pin
Bob Stanneveld9-Dec-03 21:46
Bob Stanneveld9-Dec-03 21:46 
GeneralRe: ID3 Pin
qdping9-Dec-03 21:59
qdping9-Dec-03 21:59 
GeneralRe: ID3 Pin
markkuk9-Dec-03 23:54
markkuk9-Dec-03 23:54 
GeneralRe: ID3 Pin
Bob Stanneveld10-Dec-03 2:26
Bob Stanneveld10-Dec-03 2:26 
GeneralRe: ID3 Pin
Steve S10-Dec-03 5:37
Steve S10-Dec-03 5:37 
GeneralPlease help me. I want to create some tool windows in my main frame by VC++.net. Pin
freehawk9-Dec-03 19:16
freehawk9-Dec-03 19:16 
QuestionHow to get pixel value in BITMAP? Pin
charmingzuo9-Dec-03 18:01
charmingzuo9-Dec-03 18:01 
I want to use following method, but it doesn't work.

HBITMAP hBitmap; // Here hBitmap is already available;
CBitmap *pBitmap;
pBitmap->Attach(hBitmap);
BITMAP bm;
GetObject(hBitmap, sizeof(BITMAP), &bm);

I don't know the function of "LVOID bmBits" in BITMAP structure.
According to MSDN, "LVOID bmBits" is the pointer to the pixel value area,
so I think I can get pixel value (R,G,B) using loop (bm.bmBits)+ +,
unfortunately it cann't work. Maybe it is a pointer to the whole structure,
including BITMAPFILEHEADER, BITMAPINFO ??

Thanks in advance.Confused | :confused:
Nianming
AnswerRe: How to get pixel value in BITMAP? Pin
twing9-Dec-03 18:45
twing9-Dec-03 18:45 
GeneralRe: How to get pixel value in BITMAP? Pin
charmingzuo9-Dec-03 21:03
charmingzuo9-Dec-03 21:03 
GeneralPlease help !!! Pin
mcsefl999-Dec-03 17:51
mcsefl999-Dec-03 17:51 
GeneralRe: Please help !!! Pin
Prakash Nadar9-Dec-03 20:04
Prakash Nadar9-Dec-03 20:04 
GeneralRe: Please help !!! Pin
Bob Stanneveld9-Dec-03 21:48
Bob Stanneveld9-Dec-03 21:48 
Generaldouble PositiveInfinity | NegativeInfinity; Pin
Bo Hunter9-Dec-03 17:48
Bo Hunter9-Dec-03 17:48 
GeneralRe: double PositiveInfinity | NegativeInfinity; Pin
Tim Smith9-Dec-03 18:05
Tim Smith9-Dec-03 18:05 
GeneralComboBox in a Dialog Pin
Gagnon Claude9-Dec-03 17:14
Gagnon Claude9-Dec-03 17:14 
GeneralRe: ComboBox in a Dialog Pin
David Crow10-Dec-03 3:36
David Crow10-Dec-03 3:36 
GeneralCreateFile() failing when trying to open HID device Pin
haritadala9-Dec-03 14:14
haritadala9-Dec-03 14:14 
GeneralVisual Studio .net output window Pin
bryce9-Dec-03 12:57
bryce9-Dec-03 12:57 
GeneralRe: Visual Studio .net output window Pin
Jörgen Sigvardsson9-Dec-03 14:15
Jörgen Sigvardsson9-Dec-03 14:15 
GeneralRe: Visual Studio .net output window Pin
bryce9-Dec-03 14:52
bryce9-Dec-03 14:52 
GeneralRe: Visual Studio .net output window Pin
Jörgen Sigvardsson10-Dec-03 0:36
Jörgen Sigvardsson10-Dec-03 0:36 
GeneralNeed help with MFC Pin
m0rbac9-Dec-03 12:35
m0rbac9-Dec-03 12:35 
GeneralRe: Need help with MFC Pin
Christian Graus9-Dec-03 12:47
protectorChristian Graus9-Dec-03 12:47 
GeneralRe: Need help with MFC Pin
Ravi Bhavnani9-Dec-03 13:03
professionalRavi Bhavnani9-Dec-03 13:03 

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.