Click here to Skip to main content
15,893,508 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: Disabling pasting on a edit control Pin
Gavin Taylor14-Feb-08 5:46
professionalGavin Taylor14-Feb-08 5:46 
GeneralRe: Disabling pasting on a edit control Pin
David Crow14-Feb-08 9:47
David Crow14-Feb-08 9:47 
GeneralRe: Disabling pasting on a edit control Pin
Rajesh R Subramanian14-Feb-08 20:35
professionalRajesh R Subramanian14-Feb-08 20:35 
GeneralRe: Disabling pasting on a edit control Pin
Maxwell Chen14-Feb-08 21:42
Maxwell Chen14-Feb-08 21:42 
GeneralRe: Disabling pasting on a edit control Pin
Iain Clarke, Warrior Programmer14-Feb-08 22:34
Iain Clarke, Warrior Programmer14-Feb-08 22:34 
GeneralCDatabase - Knowing table count and table names from database. Pin
Aamol M14-Feb-08 4:26
Aamol M14-Feb-08 4:26 
GeneralRe: CDatabase - Knowing table count and table names from database. Pin
Mark Salsbery14-Feb-08 7:38
Mark Salsbery14-Feb-08 7:38 
GeneralRe: CDatabase - Knowing table count and table names from database. Pin
Mark Salsbery14-Feb-08 7:45
Mark Salsbery14-Feb-08 7:45 
QuestionAdding Controls in CGridCtrl virtual mode Pin
Rajith14-Feb-08 2:12
Rajith14-Feb-08 2:12 
GeneralRe: Adding Controls in CGridCtrl virtual mode Pin
Iain Clarke, Warrior Programmer14-Feb-08 22:52
Iain Clarke, Warrior Programmer14-Feb-08 22:52 
GeneralDCOM configuration Pin
George_George14-Feb-08 2:00
George_George14-Feb-08 2:00 
GeneralRe: DCOM configuration Pin
Matthew Faithfull14-Feb-08 2:57
Matthew Faithfull14-Feb-08 2:57 
GeneralRe: DCOM configuration Pin
George_George14-Feb-08 3:04
George_George14-Feb-08 3:04 
GeneralRe: DCOM configuration Pin
Matthew Faithfull14-Feb-08 3:10
Matthew Faithfull14-Feb-08 3:10 
GeneralRe: DCOM configuration Pin
George_George14-Feb-08 3:36
George_George14-Feb-08 3:36 
GeneralLogonUser Failing Pin
Leoinlove14-Feb-08 1:36
Leoinlove14-Feb-08 1:36 

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.