Click here to Skip to main content
15,915,164 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Help with OOP [modified] Pin
Rajkumar R14-Feb-08 17:34
Rajkumar R14-Feb-08 17:34 
GeneralRe: Help with OOP Pin
Lord Kixdemp14-Feb-08 17:38
Lord Kixdemp14-Feb-08 17:38 
GeneralRe: Help with OOP Pin
Rajesh R Subramanian14-Feb-08 20:30
professionalRajesh R Subramanian14-Feb-08 20:30 
GeneralRe: Help with OOP Pin
Rajkumar R14-Feb-08 22:12
Rajkumar R14-Feb-08 22:12 
GeneralRe: Help with OOP Pin
David Crow15-Feb-08 3:37
David Crow15-Feb-08 3:37 
QuestionHow to send Shift/Ctrl/Alt + key to background window Pin
njhy14-Feb-08 12:11
njhy14-Feb-08 12:11 
GeneralRe: How to send Shift/Ctrl/Alt + key to background window Pin
Rajkumar R14-Feb-08 18:04
Rajkumar R14-Feb-08 18:04 
GeneralRe: How to send Shift/Ctrl/Alt + key to background window Pin
njhy15-Feb-08 2:14
njhy15-Feb-08 2:14 
GeneralRe: How to send Shift/Ctrl/Alt + key to background window Pin
Rajesh R Subramanian14-Feb-08 20:32
professionalRajesh R Subramanian14-Feb-08 20:32 
GeneralRe: How to send Shift/Ctrl/Alt + key to background window Pin
njhy15-Feb-08 2:15
njhy15-Feb-08 2:15 
GeneralRe: How to send Shift/Ctrl/Alt + key to background window Pin
Rajesh R Subramanian15-Feb-08 2:23
professionalRajesh R Subramanian15-Feb-08 2:23 
GeneralRe: How to send Shift/Ctrl/Alt + key to background window Pin
njhy15-Feb-08 2:47
njhy15-Feb-08 2:47 
GeneralRe: How to send Shift/Ctrl/Alt + key to background window Pin
Rajesh R Subramanian15-Feb-08 3:21
professionalRajesh R Subramanian15-Feb-08 3:21 
GeneralRe: How to send Shift/Ctrl/Alt + key to background window Pin
njhy15-Feb-08 4:00
njhy15-Feb-08 4:00 
GeneralRe: How to send Shift/Ctrl/Alt + key to background window Pin
Rajesh R Subramanian15-Feb-08 4:21
professionalRajesh R Subramanian15-Feb-08 4:21 
GeneralRe: How to send Shift/Ctrl/Alt + key to background window Pin
Rajkumar R15-Feb-08 5:43
Rajkumar R15-Feb-08 5:43 
QuestionHow to scan a list of parallel port from my app ? Pin
quangpk14-Feb-08 11:26
quangpk14-Feb-08 11:26 
GeneralRe: How to scan a list of parallel port from my app ? Pin
Nitheesh George14-Feb-08 16:03
Nitheesh George14-Feb-08 16:03 
QuestionRe: How to scan a list of parallel port from my app ? Pin
David Crow15-Feb-08 3:39
David Crow15-Feb-08 3:39 
GeneralRe: How to scan a list of parallel port from my app ? Pin
quangpk19-Feb-08 5:19
quangpk19-Feb-08 5:19 
QuestionRe: How to scan a list of parallel port from my app ? Pin
David Crow19-Feb-08 5:43
David Crow19-Feb-08 5:43 
GeneralRe: How to scan a list of parallel port from my app ? Pin
quangpk19-Feb-08 12:49
quangpk19-Feb-08 12:49 
GeneralRe: How to scan a list of parallel port from my app ? Pin
David Crow19-Feb-08 16:54
David Crow19-Feb-08 16:54 
GeneralDisabling pasting on a edit control Pin
si_6914-Feb-08 4:45
si_6914-Feb-08 4:45 
Hi
I want to disable pasting on an edit control

i have created a subclass control for CEdit and am using the following bit of code to disable pasting

which works in the way it stops the user being able to paste into the edit control

but it is disabling the v character as well so they are unable to type that in

Can anyone advise on a solution, so that it disables paste but the user can still use the v char

thanks

Simon

BOOL CCPEditControl::PreTranslateMessage(MSG* pMsg)
{
switch( pMsg->message )
{
case WM_KEYDOWN:
{
switch( pMsg->wParam )
{
case 0x56:
{
if( GetKeyState(VK_CONTROL) )
return true;
}
break;
}
}
break;

case WM_RBUTTONDOWN:
{
return true;
}
break;
}

return CEdit::PreTranslateMessage(pMsg);
}
GeneralRe: Disabling pasting on a edit control Pin
led mike14-Feb-08 5:32
led mike14-Feb-08 5:32 

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.