Click here to Skip to main content
15,911,035 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCan a CPropertyPage be also shown as a standalone dialog? [modified] Pin
sashoalm17-Nov-09 23:21
sashoalm17-Nov-09 23:21 
QuestionRe: Can a CPropertyPage be also shown as a standalone dialog? Pin
David Crow18-Nov-09 3:26
David Crow18-Nov-09 3:26 
AnswerRe: Can a CPropertyPage be also shown as a standalone dialog? Pin
sashoalm18-Nov-09 5:30
sashoalm18-Nov-09 5:30 
Questiondear brother, can you help me? Pin
nenfa17-Nov-09 21:28
nenfa17-Nov-09 21:28 
AnswerRe: dear brother, can you help me? Pin
Richard MacCutchan17-Nov-09 21:44
mveRichard MacCutchan17-Nov-09 21:44 
AnswerRe: dear brother, can you help me? Pin
Code-o-mat17-Nov-09 21:51
Code-o-mat17-Nov-09 21:51 
GeneralRe: dear brother, can you help me? Pin
nenfa17-Nov-09 23:54
nenfa17-Nov-09 23:54 
GeneralRe: dear brother, can you help me? Pin
Code-o-mat18-Nov-09 0:07
Code-o-mat18-Nov-09 0:07 
I'm not sure what you mean by steps, but...
Fill out a BITMAPINFO[^] structure (meaning, the BITMAPINFOHEADER[^] struct in that), specifying your requested width and height, color bit depth (i recommend 24 or 32), also don't forget to set the biSize member to the size of the struct, biPanes should be 1, the rest can be zero i believe. Then feed this struct to CreateDIBSection, something like this:
CreateDIBSection(NULL, &your_bitmap_info_struct, DIB_RGB_COLORS, &pointer_to_pixel_data, NULL, NULL);
This will give you a HBITMAP handle and also set the pointer_to_pixel_data pointer to point at the very first pixel. Of course if it succeeds.
Then you can create a DC, select this bitmap into it and use DrawIcon[^] or DrawIconEx[^] to render your icon onto the bitmap. After this, you can use the pointer_to_pixel_data to access the pixels and do whatever you like with them. Don't forget to clean up the bitmap and the icon after you are done with them. Good luck.

> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Sometimes you just have to hate coding to do it well. <

GeneralRe: dear brother, can you help me? Pin
nenfa18-Nov-09 3:26
nenfa18-Nov-09 3:26 
QuestionFont Pin
john563217-Nov-09 20:50
john563217-Nov-09 20:50 
AnswerRe: Font Pin
Nuri Ismail17-Nov-09 21:35
Nuri Ismail17-Nov-09 21:35 
GeneralRe: Font Pin
john563217-Nov-09 21:47
john563217-Nov-09 21:47 
GeneralRe: Font [modified] Pin
Nuri Ismail17-Nov-09 22:39
Nuri Ismail17-Nov-09 22:39 
AnswerRe: Font Pin
Code-o-mat17-Nov-09 21:38
Code-o-mat17-Nov-09 21:38 
AnswerRe: Font Pin
Randor 17-Nov-09 22:55
professional Randor 17-Nov-09 22:55 
QuestionVS6 to VS2008 Pin
john563217-Nov-09 20:31
john563217-Nov-09 20:31 
AnswerRe: VS6 to VS2008 Pin
Rajesh R Subramanian17-Nov-09 20:34
professionalRajesh R Subramanian17-Nov-09 20:34 
GeneralRe: VS6 to VS2008 Pin
john563217-Nov-09 20:37
john563217-Nov-09 20:37 
GeneralRe: VS6 to VS2008 Pin
Richard MacCutchan17-Nov-09 21:46
mveRichard MacCutchan17-Nov-09 21:46 
GeneralRe: VS6 to VS2008 Pin
mav@octaval17-Nov-09 21:47
mav@octaval17-Nov-09 21:47 
GeneralRe: VS6 to VS2008 Pin
john563218-Nov-09 1:55
john563218-Nov-09 1:55 
GeneralRe: VS6 to VS2008 Pin
mav@octaval18-Nov-09 2:02
mav@octaval18-Nov-09 2:02 
GeneralRe: VS6 to VS2008 Pin
KarstenK17-Nov-09 22:11
mveKarstenK17-Nov-09 22:11 
QuestionID card Creater/Generator. Pin
Le@rner17-Nov-09 20:21
Le@rner17-Nov-09 20:21 
AnswerRe: ID card Creater/Generator. Pin
Rajesh R Subramanian17-Nov-09 20:35
professionalRajesh R Subramanian17-Nov-09 20:35 

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.