Click here to Skip to main content
15,888,401 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: filling an EditBox (which is embedded) in a toolbar by clicking a ToolBarButton ! Pin
Nelek14-Dec-07 2:54
protectorNelek14-Dec-07 2:54 
GeneralRe: filling an EditBox (which is embedded) in a toolbar by clicking a ToolBarButton ! Pin
CrocodileBuck14-Dec-07 2:59
CrocodileBuck14-Dec-07 2:59 
GeneralRe: filling an EditBox (which is embedded) in a toolbar by clicking a ToolBarButton ! Pin
David Crow14-Dec-07 3:20
David Crow14-Dec-07 3:20 
GeneralRe: filling an EditBox (which is embedded) in a toolbar by clicking a ToolBarButton ! Pin
CrocodileBuck14-Dec-07 3:44
CrocodileBuck14-Dec-07 3:44 
GeneralRe: filling an EditBox (which is embedded) in a toolbar by clicking a ToolBarButton ! Pin
CrocodileBuck14-Dec-07 3:47
CrocodileBuck14-Dec-07 3:47 
QuestionRe: filling an EditBox (which is embedded) in a toolbar by clicking a ToolBarButton ! Pin
David Crow14-Dec-07 4:29
David Crow14-Dec-07 4:29 
GeneralRe: filling an EditBox (which is embedded) in a toolbar by clicking a ToolBarButton ! Pin
CrocodileBuck14-Dec-07 4:45
CrocodileBuck14-Dec-07 4:45 
GeneralRe: filling an EditBox (which is embedded) in a toolbar by clicking a ToolBarButton ! Pin
David Crow14-Dec-07 5:29
David Crow14-Dec-07 5:29 
CrocodileBuck wrote:

first i get a not declared identifier at ((CMainFrame*)GetParent())->SetMyToolBarEditText("blabla");


Well, is SetMyToolBarEditText() a member of CMainFrame?

CrocodileBuck wrote:
GetParent needs a hwnd...


That depends on which version you are using. To access the frame from within your CDocument-derived class, then you would need to use:

((CMainFrame *) AfxGetMainWnd())->SetMyToolBarEditText("blabla");

"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman

"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne


GeneralRe: filling an EditBox (which is embedded) in a toolbar by clicking a ToolBarButton ! Pin
CrocodileBuck14-Dec-07 6:03
CrocodileBuck14-Dec-07 6:03 
QuestionRe: filling an EditBox (which is embedded) in a toolbar by clicking a ToolBarButton ! Pin
David Crow14-Dec-07 6:16
David Crow14-Dec-07 6:16 
GeneralRe: filling an EditBox (which is embedded) in a toolbar by clicking a ToolBarButton ! Pin
CrocodileBuck14-Dec-07 7:56
CrocodileBuck14-Dec-07 7:56 
QuestionHow can I get the name of Win CE device? Pin
yudhisthira14-Dec-07 1:46
yudhisthira14-Dec-07 1:46 
AnswerRe: How can I get the name of Win CE device? Pin
Matthew Faithfull14-Dec-07 3:54
Matthew Faithfull14-Dec-07 3:54 
AnswerRe: How can I get the name of Win CE device? Pin
Alain Rist14-Dec-07 7:05
Alain Rist14-Dec-07 7:05 
GeneralMake use SDI features in Dialog based applications Pin
varun0113-Dec-07 23:53
varun0113-Dec-07 23:53 
GeneralRe: Make use SDI features in Dialog based applications Pin
Nelek14-Dec-07 0:02
protectorNelek14-Dec-07 0:02 
Questiondrawline for VC++ Pin
mercenary0113-Dec-07 23:45
mercenary0113-Dec-07 23:45 
GeneralRe: drawline for VC++ Pin
Nelek13-Dec-07 23:59
protectorNelek13-Dec-07 23:59 
GeneralRe: drawline for VC++ Pin
mercenary0114-Dec-07 1:01
mercenary0114-Dec-07 1:01 
GeneralRe: drawline for VC++ Pin
Nelek14-Dec-07 2:48
protectorNelek14-Dec-07 2:48 
GeneralNelek you missed a point! Pin
CPallini14-Dec-07 3:00
mveCPallini14-Dec-07 3:00 
GeneralRe: Nelek you missed a point! Pin
Nelek16-Dec-07 21:41
protectorNelek16-Dec-07 21:41 
GeneralRe: drawline for VC++ Pin
CPallini14-Dec-07 2:56
mveCPallini14-Dec-07 2:56 
GeneralRe: drawline for VC++ Pin
Iain Clarke, Warrior Programmer14-Dec-07 1:06
Iain Clarke, Warrior Programmer14-Dec-07 1:06 
GeneralRe: drawline for VC++ Pin
Nishad S14-Dec-07 1:35
Nishad S14-Dec-07 1:35 

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.