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

C / C++ / MFC

 
QuestionRe: Using multithreading to log... Pin
Rajkumar R18-May-08 23:22
Rajkumar R18-May-08 23:22 
QuestionRe: Using multithreading to log... Pin
CPallini18-May-08 23:17
mveCPallini18-May-08 23:17 
QuestionRead one struct,write to another struct. Pin
Anu_Bala18-May-08 19:23
Anu_Bala18-May-08 19:23 
AnswerRe: Read one struct,write to another struct. Pin
chandu00418-May-08 19:49
chandu00418-May-08 19:49 
AnswerRe: Read one struct,write to another struct. Pin
Rajkumar R18-May-08 21:08
Rajkumar R18-May-08 21:08 
Question[RESOLVED]Creating Toolbar [modified] Pin
Priya_Sundar18-May-08 18:58
Priya_Sundar18-May-08 18:58 
AnswerRe: Creating Toolbar Pin
ShilpiP18-May-08 19:53
ShilpiP18-May-08 19:53 
AnswerRe: Creating Toolbar Pin
Rajkumar R18-May-08 20:53
Rajkumar R18-May-08 20:53 
Priya_Sundar wrote:
#define IDW_EA_BAR 0xE800

Priya_Sundar wrote:
I could not determine what is this 0xE800

Actually IDW_EA_BAR == 0xE800 == AFX_IDW_TOOLBAR, same value.


Priya_Sundar wrote:
However, I could not find any resource defined with that IDW_EA_BAR

It is the not resource Identifier, it is the child window Identifier, for example Dialog Child window such as a Button can have an ID. since the tool bar is created dynamically using CreateEx and as a child window of the Frame window, you need to specify the child window ID. If the window has unique ID you can get the handle of the window specifying the ID using [GetDlgItem^] or pass to any GetDlgItemxxx funtions. If you have Handle to the window the control ID can be retrieved using [GetDlgCtrlID^].
And Since it is a ToolBar and if it is the child of Frame window you can gain access to the control bar specifying the ID using [CFrameWnd::GetControlBar^].


Priya_Sundar wrote:
Basically, I need to know what is the use of that parameter

It is the unique Identifier of the child window so that you can gain access to the window from its parent window.


Priya_Sundar wrote:
I could not find any explaination regarding the AFX_IDW_TOOLBAR

It is the standard ID of the main toolbar of a frame specified by MFC, so that it handles default standard command handling, such as toggling the visibility of toolbar when user clicks the menu command with ID, ID_VIEW_TOOLBAR. If you are adding new toolbar or specify different ID other than AFX_IDW_TOOLBAR, then you need to handle the command handling. see [TN022: Standard Commands Implementation ^], [TN021: Command and Message Routing ^]
General[RESOLVED]: Thanks Pin
Priya_Sundar19-May-08 0:57
Priya_Sundar19-May-08 0:57 
QuestionHow to return COM object? Pin
RYU^^18-May-08 18:13
RYU^^18-May-08 18:13 
AnswerRe: How to return COM object? Pin
RYU^^18-May-08 20:15
RYU^^18-May-08 20:15 
Questioninteger value in editbox Pin
Mohanraj D18-May-08 18:12
Mohanraj D18-May-08 18:12 
AnswerRe: integer value in editbox Pin
Hamid_RT18-May-08 18:17
Hamid_RT18-May-08 18:17 
GeneralRe: integer value in editbox Pin
Mohanraj D18-May-08 19:07
Mohanraj D18-May-08 19:07 
GeneralRe: integer value in editbox Pin
Hamid_RT18-May-08 19:17
Hamid_RT18-May-08 19:17 
GeneralRe: integer value in editbox Pin
Mohanraj D18-May-08 19:31
Mohanraj D18-May-08 19:31 
AnswerRe: integer value in editbox Pin
Paresh Chitte18-May-08 19:07
Paresh Chitte18-May-08 19:07 
GeneralRe: integer value in editbox Pin
Mohanraj D18-May-08 19:27
Mohanraj D18-May-08 19:27 
GeneralRe: integer value in editbox Pin
Paresh Chitte18-May-08 19:54
Paresh Chitte18-May-08 19:54 
GeneralRe: integer value in editbox Pin
Hamid_RT18-May-08 20:10
Hamid_RT18-May-08 20:10 
GeneralRe: integer value in editbox Pin
Hamid_RT18-May-08 20:34
Hamid_RT18-May-08 20:34 
GeneralRe: integer value in editbox Pin
Rajkumar R18-May-08 21:15
Rajkumar R18-May-08 21:15 
GeneralRe: integer value in editbox Pin
Cedric Moonen18-May-08 21:18
Cedric Moonen18-May-08 21:18 
JokeRe: integer value in editbox Pin
Rajesh R Subramanian18-May-08 21:37
professionalRajesh R Subramanian18-May-08 21:37 
GeneralRe: integer value in editbox Pin
CPallini18-May-08 22:09
mveCPallini18-May-08 22:09 

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.