Click here to Skip to main content
15,908,173 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problem updating the status bar Pin
ledallam30-Nov-05 22:02
ledallam30-Nov-05 22:02 
GeneralRe: Problem updating the status bar Pin
ThatsAlok30-Nov-05 22:54
ThatsAlok30-Nov-05 22:54 
Question[Message Deleted] Pin
Sachin Gedam30-Nov-05 20:28
Sachin Gedam30-Nov-05 20:28 
AnswerRe: Error in Command line compilation Pin
Sachin Gedam4-Dec-05 20:30
Sachin Gedam4-Dec-05 20:30 
QuestionHow "DCOM server process launcher" works? Pin
Chintoo72330-Nov-05 20:03
Chintoo72330-Nov-05 20:03 
AnswerRe: How "DCOM server process launcher" works? Pin
jamseyang17-Aug-14 8:58
jamseyang17-Aug-14 8:58 
QuestionSeperation between Menu and Panel Pin
PanB30-Nov-05 19:43
PanB30-Nov-05 19:43 
AnswerRe: Seperation between Menu and Panel Pin
khan++1-Dec-05 2:44
khan++1-Dec-05 2:44 
I don't really know what you mean by panel. I think it is the toolbar that you are talking about. Well, the white line is part of the toolbar. It is the non-client area of the toolbar. You can derive a class from CToolBar, and handle the WM_NCPAINT message in it, and practically do nothing in the function. Hence the white line will not be seen; instead, the window in the background will show, which is definitely not wanted.
You can:
Derive a class from CToolBar. e.g, "CMyTool". Handle its WM_NCPAINT message and do nothing in it.
Derive a class from CDialog. e.g, "CMyChildDialog". Give it child style, no border, no caption bar.
Create the toolbar as a child of the CMyChildDialog.
Then create a member variable of CMyChildDialog in CMainFrame, and handle CMainframe's OnSize() function to size the CMyChildDialog dialog to the top of the window, about 24 pixels height. You will also need to handle the toolbar button messages in the CMyChildDialog class, and route the messages to the right window.
Following the above difficult-to-follow guidelines, the white line can be removed.
But still the info you have given is not enough.
I created the toolbar dynamically using AddBitmap() and InsertButton() etc.


this is this.
GeneralRe: Seperation between Menu and Panel Pin
PanB1-Dec-05 17:42
PanB1-Dec-05 17:42 
GeneralRe: Seperation between Menu and Panel Pin
khan++1-Dec-05 20:24
khan++1-Dec-05 20:24 
GeneralRe: Seperation between Menu and Panel Pin
PanB1-Dec-05 20:27
PanB1-Dec-05 20:27 
QuestionKilling a Process Pin
PanB30-Nov-05 19:40
PanB30-Nov-05 19:40 
AnswerRe: Killing a Process Pin
Cool Ju30-Nov-05 20:23
Cool Ju30-Nov-05 20:23 
AnswerRe: Killing a Process Pin
ThatsAlok30-Nov-05 21:39
ThatsAlok30-Nov-05 21:39 
QuestionVC6.0 vs VC8.0 any links please Pin
narayanagvs30-Nov-05 18:00
narayanagvs30-Nov-05 18:00 
AnswerRe: VC6.0 vs VC8.0 any links please Pin
BadKarma30-Nov-05 22:54
BadKarma30-Nov-05 22:54 
QuestionPushbutton in a toolbar Pin
RoyceF30-Nov-05 17:15
RoyceF30-Nov-05 17:15 
AnswerRe: Pushbutton in a toolbar Pin
Owner drawn30-Nov-05 19:07
Owner drawn30-Nov-05 19:07 
QuestionOwner drawn CListCtrl items too spaced out on Win2K (picture). Pin
Haywire Guy30-Nov-05 17:01
Haywire Guy30-Nov-05 17:01 
QuestionHaving trouble overriding WndProc in VC8 Managed C++ Windows Form Pin
dxben30-Nov-05 16:29
dxben30-Nov-05 16:29 
QuestionWMP ActiveX SetProperty Issues Pin
zorba99030-Nov-05 14:50
zorba99030-Nov-05 14:50 
AnswerRe: WMP ActiveX SetProperty Issues Pin
zorba99030-Nov-05 17:33
zorba99030-Nov-05 17:33 
QuestionHow to do it in the most easy way Pin
LaHaHa30-Nov-05 13:39
LaHaHa30-Nov-05 13:39 
QuestionHow to Fix error C2105 ? Pin
rat.crown30-Nov-05 13:08
rat.crown30-Nov-05 13:08 
AnswerRe: How to Fix error C2105 ? Pin
Nilesh K.1-Dec-05 23:37
Nilesh K.1-Dec-05 23:37 

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.