Click here to Skip to main content
15,926,939 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to create the UI like pcAnywhere?[help] Pin
Mark Salsbery23-Jan-07 8:35
Mark Salsbery23-Jan-07 8:35 
Questionsize of object Pin
Try23-Jan-07 0:20
Try23-Jan-07 0:20 
AnswerRe: size of object Pin
toxcct23-Jan-07 0:23
toxcct23-Jan-07 0:23 
AnswerRe: size of object Pin
eli1502197923-Jan-07 0:39
eli1502197923-Jan-07 0:39 
GeneralRe: size of object Pin
toxcct23-Jan-07 0:40
toxcct23-Jan-07 0:40 
GeneralRe: size of object Pin
eli1502197923-Jan-07 5:31
eli1502197923-Jan-07 5:31 
AnswerRe: size of object Pin
James R. Twine23-Jan-07 3:22
James R. Twine23-Jan-07 3:22 
QuestionUndo accelerator in a Dialog in a Document application Pin
sortegrip23-Jan-07 0:15
sortegrip23-Jan-07 0:15 
Hello, I have a problem that I simply can't solve on my own.

Background:
I have a single document MFC application where the user may doubleclick on a piece of text and thereby call forth a dialog window for editing the text. That text is displayed in a Static text box. If I make a change to the text I can use Ctrl+Z or Ctrl+Y to Undo/Redo and that is great but some users do not know all short-commands so I also want to make an Undo button and a Redo button to do the exact same things. Outside the dialog in my application the accelerators Ctrl+Z and Ctrl+Y are tied to my own-defined Undo/Redo functions that are specific to my application so how do I find out what events the Ctrl+Z and Ctrl+Y accelerators in the dialog triggers?

Problem:
Since Ctrl+Z/Ctrl+Y works in my dialog although they are not defined in my IDR_MAINFRAME Accelerators they must obviously be connected to functions that are specific for performing Undo and Redo in a Dialog window. How do I connect those functions to two Undo Redo buttons as well?

Visual Studio version:
Microsoft Visual Studio 2003
AnswerRe: Undo accelerator in a Dialog in a Document application Pin
James R. Twine23-Jan-07 6:22
James R. Twine23-Jan-07 6:22 
GeneralRe: Undo accelerator in a Dialog in a Document application Pin
sortegrip23-Jan-07 23:24
sortegrip23-Jan-07 23:24 
QuestionProject files Pin
Bravoone_200622-Jan-07 23:58
Bravoone_200622-Jan-07 23:58 
AnswerRe: Project files Pin
toxcct23-Jan-07 0:03
toxcct23-Jan-07 0:03 
AnswerRe: Project files Pin
Bravoone_200623-Jan-07 0:08
Bravoone_200623-Jan-07 0:08 
GeneralRe: Project files Pin
toxcct23-Jan-07 0:10
toxcct23-Jan-07 0:10 
QuestionRe: Project files Pin
Bravoone_200623-Jan-07 0:16
Bravoone_200623-Jan-07 0:16 
AnswerRe: Project files Pin
toxcct23-Jan-07 0:18
toxcct23-Jan-07 0:18 
GeneralRe: Project files Pin
Bravoone_200623-Jan-07 0:21
Bravoone_200623-Jan-07 0:21 
GeneralRe: Project files Pin
toxcct23-Jan-07 0:22
toxcct23-Jan-07 0:22 
GeneralRe: Project files Pin
Bravoone_200623-Jan-07 0:26
Bravoone_200623-Jan-07 0:26 
GeneralRe: Project files Pin
toxcct23-Jan-07 0:29
toxcct23-Jan-07 0:29 
GeneralRe: Project files Pin
Bravoone_200623-Jan-07 1:00
Bravoone_200623-Jan-07 1:00 
GeneralRe: Project files Pin
toxcct23-Jan-07 1:06
toxcct23-Jan-07 1:06 
GeneralRe: Project files Pin
Bravoone_200623-Jan-07 1:12
Bravoone_200623-Jan-07 1:12 
GeneralRe: Project files Pin
toxcct23-Jan-07 2:14
toxcct23-Jan-07 2:14 
GeneralRe: Project files Pin
Waldermort23-Jan-07 2:27
Waldermort23-Jan-07 2:27 

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.