Click here to Skip to main content
15,921,694 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: multiple selection in a list box Pin
Mark Salsbery19-Jul-07 7:55
Mark Salsbery19-Jul-07 7:55 
GeneralRe: multiple selection in a list box Pin
Eytukan19-Jul-07 8:07
Eytukan19-Jul-07 8:07 
GeneralRe: multiple selection in a list box Pin
Mark Salsbery19-Jul-07 8:10
Mark Salsbery19-Jul-07 8:10 
GeneralRe: multiple selection in a list box Pin
James R. Twine19-Jul-07 8:14
James R. Twine19-Jul-07 8:14 
GeneralRe: multiple selection in a list box Pin
Eytukan19-Jul-07 8:20
Eytukan19-Jul-07 8:20 
AnswerRe: multiple selection in a list box Pin
tanvon malik19-Jul-07 3:00
tanvon malik19-Jul-07 3:00 
QuestionProblem in displaying Balloon tool tip in VC++6.0 MFC??? Pin
gloriousgopi19-Jul-07 1:46
gloriousgopi19-Jul-07 1:46 
QuestionDisplay bitmap stored in array on simple button Pin
Ravindra_Joshi18-Jul-07 23:50
Ravindra_Joshi18-Jul-07 23:50 
Hi,
I am trying to display a bitmap Image which I have stored in an array in my program .. But only a rectangle filled with Black color appears...My code snippet is as follows ...

<code>
HBITMAP hndle=NULL; // declared in .h file
CBitmap obj;

obj.CreateBitmap(20,23, 1, 1, dec_arr );

hndle=obj.operator HBITMAP();

sim_bt.Create( _T("Hi") ,WS_CHILD | WS_VISIBLE | BS_BITMAP , CRect(30,0,100,40),this,2222);

hndle=sim_bt.SetBitmap(hndle);

</code>

As far as I know CreateBitmap() is the function that initializes the CBitmap object with the bitmap stored in the memory ( array) [ Please correct me if I am wrong...]
Operator HBITMAP gives me the handle og the bitmap..
I am creating the button of type CButton using Create(),
and finally associating the bitmap using bitmap to the button using SetBitmap();

I have no idea of the two parameters
UINT nPlanes , UINT nBitcount ( I think these values might be causing a problem..) what values should I put here ???
If my approach is totally wrong which functions should I use..

AnswerRe: Display bitmap stored in array on simple button Pin
John R. Shaw19-Jul-07 1:29
John R. Shaw19-Jul-07 1:29 
AnswerRe: Display bitmap stored in array on simple button Pin
Rage19-Jul-07 1:35
professionalRage19-Jul-07 1:35 
GeneralDisplay bitmap stored in array on simple button Pin
Ravindra_Joshi19-Jul-07 2:08
Ravindra_Joshi19-Jul-07 2:08 
AnswerRe: Display bitmap stored in array on simple button Pin
Mark Salsbery19-Jul-07 5:13
Mark Salsbery19-Jul-07 5:13 
QuestionHow to include Header file in.... Pin
Electronic7518-Jul-07 23:48
Electronic7518-Jul-07 23:48 
AnswerRe: How to include Header file in.... Pin
Matthew Faithfull19-Jul-07 0:09
Matthew Faithfull19-Jul-07 0:09 
GeneralRe: How to include Header file in.... Pin
Electronic7519-Jul-07 1:08
Electronic7519-Jul-07 1:08 
GeneralRe: How to include Header file in.... Pin
Rage19-Jul-07 1:30
professionalRage19-Jul-07 1:30 
GeneralRe: How to include Header file in.... [modified] Pin
Eytukan19-Jul-07 8:25
Eytukan19-Jul-07 8:25 
AnswerRe: How to include Header file in.... Pin
Matthew Faithfull19-Jul-07 2:27
Matthew Faithfull19-Jul-07 2:27 
Questionpackage installation. Pin
Md. Ali Naser Khan18-Jul-07 22:45
Md. Ali Naser Khan18-Jul-07 22:45 
QuestionOpening a drive...need help Pin
dranne18-Jul-07 22:12
dranne18-Jul-07 22:12 
AnswerRe: Opening a drive...need help Pin
thammadi18-Jul-07 22:29
thammadi18-Jul-07 22:29 
AnswerRe: Opening a drive...need help Pin
vipin_nvk18-Jul-07 22:33
vipin_nvk18-Jul-07 22:33 
QuestionOnIdle() not getting focus Pin
rp_suman18-Jul-07 22:05
rp_suman18-Jul-07 22:05 
AnswerRe: OnIdle() not getting focus Pin
Mark Salsbery19-Jul-07 5:21
Mark Salsbery19-Jul-07 5:21 
GeneralRe: OnIdle() not getting focus Pin
rp_suman19-Jul-07 14:40
rp_suman19-Jul-07 14:40 

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.