Click here to Skip to main content
16,005,038 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to get datas from an edit control (in the toolbar) by pressing return (enter) ? Pin
CrocodileBuck7-Apr-08 7:31
CrocodileBuck7-Apr-08 7:31 
GeneralRe: How to get datas from an edit control (in the toolbar) by pressing return (enter) ? Pin
Mark Salsbery7-Apr-08 7:44
Mark Salsbery7-Apr-08 7:44 
GeneralRe: How to get datas from an edit control (in the toolbar) by pressing return (enter) ? Pin
CrocodileBuck7-Apr-08 7:49
CrocodileBuck7-Apr-08 7:49 
GeneralRe: How to get datas from an edit control (in the toolbar) by pressing return (enter) ? Pin
CrocodileBuck7-Apr-08 7:53
CrocodileBuck7-Apr-08 7:53 
GeneralRe: How to get datas from an edit control (in the toolbar) by pressing return (enter) ? Pin
Mark Salsbery7-Apr-08 8:02
Mark Salsbery7-Apr-08 8:02 
GeneralRe: How to get datas from an edit control (in the toolbar) by pressing return (enter) ? Pin
CrocodileBuck7-Apr-08 8:14
CrocodileBuck7-Apr-08 8:14 
GeneralRe: How to get datas from an edit control (in the toolbar) by pressing return (enter) ? Pin
Mark Salsbery7-Apr-08 8:31
Mark Salsbery7-Apr-08 8:31 
GeneralRe: How to get datas from an edit control (in the toolbar) by pressing return (enter) ? Pin
CrocodileBuck7-Apr-08 8:47
CrocodileBuck7-Apr-08 8:47 
??? Shur i can add classes but i'm ....Confused | :confused: !
I don't know where i have to implement your code and i don't know how to do it !
I tried it too long i think ! Frown | :(
This is the declaration of the membervariable of my edit in NewToolBar.h :
public:<br />
//************************************************************************************************************	<br />
	CEdit	m_Ctrl_EDIT;<br />
//************************************************************************************************************<br />


In NewToolBar.cpp:
BOOL NewToolBar::LoadToolBarEx(UINT id)<br />
{<br />
	BOOL	bReturn;<br />
<br />
	bReturn = CToolBar::LoadToolBar(id); // Zugriff auf Elemente der Funktion LoadToolbar()<br />
	int iPosition = CommandToIndex(ID_nEDIT);<br />
	SetButtonInfo(iPosition,ID_nEDIT,TBBS_SEPARATOR,EDITLEN);<br />
<br />
	CRect rect;<br />
<br />
	GetItemRect(iPosition, rect);<br />
	<br />
	rect.bottom = 20;<br />
	<br />
	DWORD dwStyle = WS_CHILD|WS_VISIBLE|WS_TABSTOP|ES_AUTOHSCROLL;/*ES_NUMBER|*/<br />
	m_Ctrl_EDIT.CreateEx(WS_EX_CLIENTEDGE,_T("EDIT"),NULL, dwStyle, rect, this, ID_nEDIT);	<br />
<br />
<br />
	return bReturn;<br />
}<br />

i use the menber !!!

i don't know how to implement code into mine, this is the prob !

Could you perhaps show it on my sample i posted, i know it's not the general way, im not to lazy, it simply won'work Frown | :( Frown | :( Frown | :( Sigh | :sigh: Sigh | :sigh: Sigh | :sigh: Cry | :(( Cry | :(( Cry | :((

Thanx a lot
Best regards
Croc(master of desaster)
GeneralRe: How to get datas from an edit control (in the toolbar) by pressing return (enter) ? Pin
Mark Salsbery7-Apr-08 9:01
Mark Salsbery7-Apr-08 9:01 
GeneralRe: How to get datas from an edit control (in the toolbar) by pressing return (enter) ? Pin
CrocodileBuck7-Apr-08 9:22
CrocodileBuck7-Apr-08 9:22 
GeneralRe: How to get datas from an edit control (in the toolbar) by pressing return (enter) ? Pin
CrocodileBuck7-Apr-08 9:30
CrocodileBuck7-Apr-08 9:30 
GeneralRe: How to get datas from an edit control (in the toolbar) by pressing return (enter) ? Pin
Mark Salsbery7-Apr-08 9:36
Mark Salsbery7-Apr-08 9:36 
GeneralRe: How to get datas from an edit control (in the toolbar) by pressing return (enter) ? Pin
CrocodileBuck7-Apr-08 9:45
CrocodileBuck7-Apr-08 9:45 
GeneralRe: How to get datas from an edit control (in the toolbar) by pressing return (enter) ? Pin
Mark Salsbery7-Apr-08 10:00
Mark Salsbery7-Apr-08 10:00 
GeneralRe: How to get datas from an edit control (in the toolbar) by pressing return (enter) ? Pin
led mike7-Apr-08 10:04
led mike7-Apr-08 10:04 
GeneralRe: How to get datas from an edit control (in the toolbar) by pressing return (enter) ? Pin
Mark Salsbery7-Apr-08 10:11
Mark Salsbery7-Apr-08 10:11 
GeneralRe: How to get datas from an edit control (in the toolbar) by pressing return (enter) ? Pin
CrocodileBuck7-Apr-08 10:59
CrocodileBuck7-Apr-08 10:59 
Generala problem when wait for a thread to be completed Pin
followait7-Apr-08 5:30
followait7-Apr-08 5:30 
QuestionRe: a problem when wait for a thread to be completed Pin
David Crow7-Apr-08 6:05
David Crow7-Apr-08 6:05 
GeneralRe: a problem when wait for a thread to be completed Pin
followait7-Apr-08 7:37
followait7-Apr-08 7:37 
GeneralRe: a problem when wait for a thread to be completed Pin
David Crow7-Apr-08 8:10
David Crow7-Apr-08 8:10 
GeneralRe: a problem when wait for a thread to be completed Pin
Jim Crafton7-Apr-08 9:24
Jim Crafton7-Apr-08 9:24 
GeneralRe: a problem when wait for a thread to be completed Pin
Stephen Hewitt7-Apr-08 15:19
Stephen Hewitt7-Apr-08 15:19 
GeneralRe: a problem when wait for a thread to be completed Pin
ThatsAlok7-Apr-08 19:28
ThatsAlok7-Apr-08 19:28 
GeneralRe: a problem when wait for a thread to be completed Pin
Mark Salsbery7-Apr-08 6:16
Mark Salsbery7-Apr-08 6:16 

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.