Click here to Skip to main content
15,912,400 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: IOCTL codes Pin
Roger Stoltz30-Jun-09 1:25
Roger Stoltz30-Jun-09 1:25 
QuestionCMYK values Pin
S p k 52129-Jun-09 20:56
S p k 52129-Jun-09 20:56 
AnswerRe: CMYK values Pin
Nuri Ismail29-Jun-09 21:19
Nuri Ismail29-Jun-09 21:19 
GeneralRe: CMYK values Pin
S p k 52129-Jun-09 21:57
S p k 52129-Jun-09 21:57 
GeneralRe: CMYK values Pin
Nuri Ismail29-Jun-09 22:04
Nuri Ismail29-Jun-09 22:04 
AnswerRe: CMYK values Pin
Chris Losinger30-Jun-09 10:24
professionalChris Losinger30-Jun-09 10:24 
GeneralRe: CMYK values Pin
Nuri Ismail30-Jun-09 20:42
Nuri Ismail30-Jun-09 20:42 
AnswerRe: CMYK values Pin
Alan Balkany1-Jul-09 4:14
Alan Balkany1-Jul-09 4:14 
QuestionDebug Assertion Pin
Davitor29-Jun-09 20:42
Davitor29-Jun-09 20:42 
AnswerRe: Debug Assertion Pin
Madhu Nair29-Jun-09 20:59
Madhu Nair29-Jun-09 20:59 
GeneralRe: Debug Assertion Pin
Davitor29-Jun-09 21:12
Davitor29-Jun-09 21:12 
AnswerRe: Debug Assertion Pin
«_Superman_»29-Jun-09 21:07
professional«_Superman_»29-Jun-09 21:07 
GeneralRe: Debug Assertion Pin
Davitor29-Jun-09 21:14
Davitor29-Jun-09 21:14 
GeneralRe: Debug Assertion Pin
CPallini29-Jun-09 21:37
mveCPallini29-Jun-09 21:37 
GeneralRe: Debug Assertion Pin
Davitor29-Jun-09 21:51
Davitor29-Jun-09 21:51 
GeneralRe: Debug Assertion Pin
CPallini29-Jun-09 21:56
mveCPallini29-Jun-09 21:56 
GeneralRe: Debug Assertion Pin
Davitor29-Jun-09 22:08
Davitor29-Jun-09 22:08 
AnswerRe: Debug Assertion Pin
Stuart Dootson29-Jun-09 22:32
professionalStuart Dootson29-Jun-09 22:32 
GeneralRe: Debug Assertion Pin
Davitor29-Jun-09 23:05
Davitor29-Jun-09 23:05 
GeneralRe: Debug Assertion Pin
CPallini29-Jun-09 23:34
mveCPallini29-Jun-09 23:34 
GeneralRe: Debug Assertion [modified] Pin
Stuart Dootson30-Jun-09 2:27
professionalStuart Dootson30-Jun-09 2:27 
GeneralRe: Debug Assertion Pin
Davitor30-Jun-09 20:53
Davitor30-Jun-09 20:53 
GeneralRe: Debug Assertion Pin
Davitor8-Jul-09 18:16
Davitor8-Jul-09 18:16 
GeneralRe: Debug Assertion Pin
Stuart Dootson9-Jul-09 0:31
professionalStuart Dootson9-Jul-09 0:31 
QuestionHow to handle VSFlexGrid's OnPaste event ? Pin
prasadgates29-Jun-09 20:29
prasadgates29-Jun-09 20:29 
I am working on VC++ project where I am using VSFlexGrid.
I need to copy a string from any editor (e.g notepad, MS Word etc) and after validating for certain

conditions, paste the string in FlexGrid cell, if validations conditions are true.
I have tried using KeyPessEdit event for ctrl+v (ASCII == 22)
I tried something like this :

if(*KeyAscii == 22)
{

// Paste the string in FlexGrid cell

char* tempString= NULL ;
string buffer = NULL ;
bool bIsValidChar = true;
tempString = (char*)GetClipboardData(CF_TEXT);
for(int i = 0; '\0' != tempString[i]; i++ )
{
if( (tempString[i] >= 65 && tempString[i] <= 70 ) || tempString[i] >= 48 && tempString[i] <= 57))
{
continue;
}
else
{ bIsValidChar = false;
break;
}
}

But in this case before control reaches to 'bool bIsValidChar = true;' string copied from elsewhere gets pasted in FlexGrid cell. That means by default implementation of Paste method of FlexGrid is getting called.

So how can I do my validations and then allow or disallow the pasting of string in a cell.
How can I handle FlexGrid's OnPaste event ?

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.