Click here to Skip to main content
15,912,400 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Using multithreading to log... Pin
pl_kode18-May-08 20:46
pl_kode18-May-08 20:46 
AnswerRe: Using multithreading to log... Pin
pl_kode18-May-08 22:39
pl_kode18-May-08 22:39 
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 
Hi,

I have tool bar in my application.

In the below piece of code:

if (!m_wndEAToolBar.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_RIGHT
			  | CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC,CRect(0,0,0,0),IDW_EA_BAR) ||
			  !m_wndEAToolBar.LoadToolBar(IDR_TOOLBAR_EA))
		   {
			  TRACE0("Failed to create toolbar\n");
			  return -1;      // fail to create
		   }


I have this machro IDW_EA_BAR defined in the MainFrm.h file as
#define IDW_EA_BAR                 0xE800


I could not determine what is this 0xE800. However from the article: http://book.chinaz.com/C/Visual%20C++%206.0/ch12/ch12.htm[^] I have the explaination for that parameter in the CreateEx function as : "you can specify any defined ID that you need or want to use for the toolbar. default - AFX_IDW_TOOLBAR"

However, I could not find any resource defined with that IDW_EA_BAR. And in MSDN also I could not find any explaination regarding the AFX_IDW_TOOLBAR.

Basically, I need to know what is the use of that parameter. In my piece of code why is it defined with that id in .h file? and why with that particular number?

Thanks in advance.

Priya Sundar

modified on Monday, May 19, 2008 6:57 AM

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 
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 

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.