Click here to Skip to main content
15,942,847 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionOnInitDialog? Pin
Le Quang Long30-Apr-12 4:38
Le Quang Long30-Apr-12 4:38 
AnswerRe: OnInitDialog? Pin
Maximilien30-Apr-12 5:03
Maximilien30-Apr-12 5:03 
GeneralRe: OnInitDialog? Pin
Le Quang Long30-Apr-12 6:20
Le Quang Long30-Apr-12 6:20 
QuestionRe: OnInitDialog? Pin
David Crow30-Apr-12 6:07
David Crow30-Apr-12 6:07 
AnswerRe: OnInitDialog? Pin
Le Quang Long30-Apr-12 14:11
Le Quang Long30-Apr-12 14:11 
QuestionRestrict Copy and Paste Pin
john563229-Apr-12 18:35
john563229-Apr-12 18:35 
AnswerRe: Restrict Copy and Paste Pin
_AnsHUMAN_ 29-Apr-12 22:29
_AnsHUMAN_ 29-Apr-12 22:29 
AnswerRe: Restrict Copy and Paste Pin
JohnCz2-May-12 11:09
JohnCz2-May-12 11:09 
The question is: what view? Is it MFC Cedit or CrichEdit derived view?
Anyway, you do not have capture anything. Where is the word capture coming from? Windows sends messages that you choose to handle or not you do not have to set any traps to capture.

Anyway, if this is MFC application it has menu items and possibly corresponding accelerator keys combination with the same ID.
For example: ID_EDIT_PASTE has Ctrl-V or CTRL-Insert key combinations.

If you want to completely disable copying pasting, insert do nothing (empty) handlers for those IDs, leave accelerators intact and remove appropriate menu items.

If you want to disable editing under certain condition, use Update UI for those commands.
JohnCz

QuestionHow to setup the project settings when create an x64 project in cs2008? Pin
SAMZCN29-Apr-12 17:27
SAMZCN29-Apr-12 17:27 
AnswerRe: How to setup the project settings when create an x64 project in cs2008? Pin
Lakamraju Raghuram29-Apr-12 17:56
Lakamraju Raghuram29-Apr-12 17:56 
GeneralRe: How to setup the project settings when create an x64 project in cs2008? Pin
SAMZCN30-Apr-12 1:06
SAMZCN30-Apr-12 1:06 
GeneralRe: How to setup the project settings when create an x64 project in cs2008? Pin
Randor 30-Apr-12 2:42
professional Randor 30-Apr-12 2:42 
Questionrelational operators in class time Pin
MMJ198929-Apr-12 14:28
MMJ198929-Apr-12 14:28 
QuestionRe: relational operators in class time Pin
Lakamraju Raghuram29-Apr-12 17:57
Lakamraju Raghuram29-Apr-12 17:57 
QuestionAsyncIO - how to use it? Pin
TalSt29-Apr-12 1:47
TalSt29-Apr-12 1:47 
AnswerRe: AsyncIO - how to use it? Pin
Aescleal29-Apr-12 3:22
Aescleal29-Apr-12 3:22 
QuestionEXE File Protection Pin
Le Quang Long27-Apr-12 21:22
Le Quang Long27-Apr-12 21:22 
AnswerRe: EXE File Protection Pin
Rajesh R Subramanian27-Apr-12 21:31
professionalRajesh R Subramanian27-Apr-12 21:31 
GeneralRe: EXE File Protection Pin
Le Quang Long28-Apr-12 0:12
Le Quang Long28-Apr-12 0:12 
GeneralRe: EXE File Protection Pin
Rajesh R Subramanian28-Apr-12 0:57
professionalRajesh R Subramanian28-Apr-12 0:57 
GeneralRe: EXE File Protection Pin
Le Quang Long28-Apr-12 16:19
Le Quang Long28-Apr-12 16:19 
Questionhow to make this not stop? Pin
Member 784572027-Apr-12 14:17
Member 784572027-Apr-12 14:17 
AnswerRe: how to make this not stop? Pin
krsmichael27-Apr-12 14:45
krsmichael27-Apr-12 14:45 
GeneralRe: how to make this not stop? Pin
Member 784572027-Apr-12 15:07
Member 784572027-Apr-12 15:07 
GeneralRe: how to make this not stop? Pin
krsmichael27-Apr-12 18:33
krsmichael27-Apr-12 18:33 

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.