Click here to Skip to main content
15,880,503 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Turning an MFC application to a Win32 Console Application Pin
Stephen Hewitt17-Dec-06 16:00
Stephen Hewitt17-Dec-06 16:00 
GeneralRe: Turning an MFC application to a Win32 Console Application Pin
Mark Salsbery17-Dec-06 16:07
Mark Salsbery17-Dec-06 16:07 
QuestionRe: Turning an MFC application to a Win32 Console Application Pin
Mohamed Douffir18-Dec-06 12:03
Mohamed Douffir18-Dec-06 12:03 
Questionquestion about CDialog Pin
zizzzz17-Dec-06 7:46
zizzzz17-Dec-06 7:46 
AnswerRe: question about CDialog Pin
CPallini17-Dec-06 7:59
mveCPallini17-Dec-06 7:59 
AnswerRe: question about CDialog Pin
Hamid_RT18-Dec-06 6:39
Hamid_RT18-Dec-06 6:39 
QuestionToolBar 24-bit bitmap problem [modified] Pin
levelboy17-Dec-06 7:31
levelboy17-Dec-06 7:31 
AnswerRe: ToolBar 24-bit bitmap problem [modified] Pin
Mark Salsbery17-Dec-06 9:17
Mark Salsbery17-Dec-06 9:17 
Maybe try using an image list instead of the CToolBar::LoadBitmap(), something like:
   // In the class definition
   CImageList m_dialogToolbarImageList;
...
   // In constructor...(substitute an appropriate background/transparent COLORREF)
   CBitmap bitmap;
   bitmap.LoadBitmap(IDB_BITMAP4);
   m_dialogToolbarImageList.Create(16, 15, ILC_COLOR24|ILC_MASK, 3, 1);
   m_dialogToolbarImageList.Add(&bitmap, RGB(0x00,0xFF,0x00));
...
   // In OnCreate or OnInitDialog
   m_dialogToolbar.Create(this);
   m_dialogToolbar.GetToolBarCtrl().SetImageList(&m_dialogToolbarImageList);
   m_dialogToolbar.SetSizes(CSize(23,21), CSize(16,15));
   m_dialogToolbar.SetButtons(toolBarButtons,3);



-- modified at 16:57 Sunday 17th December, 2006
*EDIT* Fixed constructor code


-- modified at 17:01 Sunday 17th December, 2006
GeneralRe: ToolBar 24-bit bitmap problem [modified] Pin
levelboy17-Dec-06 9:50
levelboy17-Dec-06 9:50 
GeneralRe: ToolBar 24-bit bitmap problem Pin
Mark Salsbery17-Dec-06 11:03
Mark Salsbery17-Dec-06 11:03 
GeneralRe: ToolBar 24-bit bitmap problem Pin
levelboy17-Dec-06 11:06
levelboy17-Dec-06 11:06 
QuestionHandles Pin
BlitzPackage17-Dec-06 6:46
BlitzPackage17-Dec-06 6:46 
AnswerRe: Handles Pin
CPallini17-Dec-06 7:33
mveCPallini17-Dec-06 7:33 
GeneralRe: Handles Pin
BlitzPackage17-Dec-06 8:38
BlitzPackage17-Dec-06 8:38 
AnswerRe: Handles Pin
Stephen Hewitt17-Dec-06 11:39
Stephen Hewitt17-Dec-06 11:39 
AnswerRe: Handles Pin
nmap.terren17-Dec-06 14:19
nmap.terren17-Dec-06 14:19 
QuestionHow to get the CEdit box to update Pin
FredrickNorge17-Dec-06 5:32
FredrickNorge17-Dec-06 5:32 
AnswerRe: How to get the CEdit box to update Pin
BlitzPackage17-Dec-06 6:52
BlitzPackage17-Dec-06 6:52 
GeneralRe: How to get the CEdit box to update Pin
FredrickNorge17-Dec-06 7:05
FredrickNorge17-Dec-06 7:05 
Questionpointers to functions Pin
emrah.a17-Dec-06 3:58
emrah.a17-Dec-06 3:58 
AnswerRe: pointers to functions Pin
Chris Losinger17-Dec-06 4:43
professionalChris Losinger17-Dec-06 4:43 
AnswerRe: pointers to functions Pin
prasad_som17-Dec-06 18:22
prasad_som17-Dec-06 18:22 
GeneralNeed Article Co-Author Pin
Jeffrey Walton17-Dec-06 3:09
Jeffrey Walton17-Dec-06 3:09 
QuestionDouble buffering in a wmp Visualization Pin
ceejeeb17-Dec-06 3:08
ceejeeb17-Dec-06 3:08 
QuestionBest way to interact with a C program Pin
Luís Brás17-Dec-06 1:59
Luís Brás17-Dec-06 1:59 

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.