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

C / C++ / MFC

 
AnswerRe: Has anybody used CMacProgressCtrl? Pin
David Crow15-Apr-08 7:26
David Crow15-Apr-08 7:26 
GeneralCommand line arguments passed to another application Pin
Eikthrynir15-Apr-08 6:23
Eikthrynir15-Apr-08 6:23 
GeneralRe: Command line arguments passed to another application Pin
David Crow15-Apr-08 7:29
David Crow15-Apr-08 7:29 
General_free, _malloc already defined in libc.lib Pin
ns15-Apr-08 4:33
ns15-Apr-08 4:33 
GeneralRe: _free, _malloc already defined in libc.lib Pin
Cedric Moonen15-Apr-08 4:47
Cedric Moonen15-Apr-08 4:47 
JokeRe: _free, _malloc already defined in libc.lib Pin
toxcct15-Apr-08 5:05
toxcct15-Apr-08 5:05 
QuestionHow to update a view from toolbar in the right way ! Pin
CrocodileBuck15-Apr-08 4:33
CrocodileBuck15-Apr-08 4:33 
AnswerRe: How to update a view from toolbar in the right way ! Pin
Iain Clarke, Warrior Programmer15-Apr-08 5:28
Iain Clarke, Warrior Programmer15-Apr-08 5:28 
You have loads of ways to do this, really, depending on your application.

What it looks like you should do is have a function in your document, eg:?
BOOL CMyDoc::UpdateSomeTextField (CString s)
{
    if ( !some validation here )
         return FALSE;

    m_KeepString = s;
    UpdateAllViews (NULL);
    return TRUE;
}


and in your PreTranslateMessage function, call this member function. This will decouple your document from the toolbar, and remove the view from the equation.

Also, CFrameWnd has a function GetActiveDocument which will be a bit safer for you - and may make it easier when you move to an MDI model (if you choose).

Iain.

Iain Clarke appears because CPallini still cares.

GeneralRe: How to update a view from toolbar in the right way ! Pin
CrocodileBuck15-Apr-08 7:14
CrocodileBuck15-Apr-08 7:14 
GeneralRe: How to update a view from toolbar in the right way ! Pin
CrocodileBuck15-Apr-08 8:41
CrocodileBuck15-Apr-08 8:41 
GeneralRe: How to update a view from toolbar in the right way ! Pin
Iain Clarke, Warrior Programmer15-Apr-08 10:46
Iain Clarke, Warrior Programmer15-Apr-08 10:46 
GeneralRe: How to update a view from toolbar in the right way ! Pin
CrocodileBuck16-Apr-08 5:34
CrocodileBuck16-Apr-08 5:34 
Questionrunning program across PCs Pin
koumodaki15-Apr-08 4:16
koumodaki15-Apr-08 4:16 
AnswerRe: running program across PCs Pin
led mike15-Apr-08 4:25
led mike15-Apr-08 4:25 
QuestionRe: running program across PCs Pin
David Crow15-Apr-08 7:31
David Crow15-Apr-08 7:31 
AnswerRe: running program across PCs Pin
led mike15-Apr-08 10:15
led mike15-Apr-08 10:15 
GeneralRe: running program across PCs Pin
David Crow15-Apr-08 10:35
David Crow15-Apr-08 10:35 
GeneralRe: running program across PCs Pin
led mike16-Apr-08 5:11
led mike16-Apr-08 5:11 
QuestionRe: running program across PCs Pin
David Crow16-Apr-08 5:16
David Crow16-Apr-08 5:16 
QuestionError in application when computer change Pin
e_yp15-Apr-08 3:44
e_yp15-Apr-08 3:44 
GeneralRe: Error in application when computer change Pin
Iain Clarke, Warrior Programmer15-Apr-08 5:30
Iain Clarke, Warrior Programmer15-Apr-08 5:30 
GeneralRe: Error in application when computer change Pin
Jim Crafton15-Apr-08 8:43
Jim Crafton15-Apr-08 8:43 
GeneralRe: Error in application when computer change Pin
Jim Crafton15-Apr-08 8:45
Jim Crafton15-Apr-08 8:45 
GeneralImageList, Listbox and single bitmap palette Pin
JG53_Jaguar15-Apr-08 3:13
JG53_Jaguar15-Apr-08 3:13 
GeneralRe: ImageList, Listbox and single bitmap palette Pin
led mike15-Apr-08 4:28
led mike15-Apr-08 4:28 

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.