Click here to Skip to main content
15,920,688 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralUpper case Pin
Anonymous11-Dec-03 5:17
Anonymous11-Dec-03 5:17 
GeneralRe: Upper case Pin
valikac11-Dec-03 6:04
valikac11-Dec-03 6:04 
GeneralRe: Upper case Pin
Anonymous11-Dec-03 6:46
Anonymous11-Dec-03 6:46 
GeneralRe: Upper case Pin
Joe Woodbury11-Dec-03 6:59
professionalJoe Woodbury11-Dec-03 6:59 
GeneralSend virtual Ctrl-Alt-Del Pin
Albert Jann11-Dec-03 5:07
Albert Jann11-Dec-03 5:07 
GeneralRe: Send virtual Ctrl-Alt-Del Pin
David Crow11-Dec-03 7:31
David Crow11-Dec-03 7:31 
GeneralRe: Send virtual Ctrl-Alt-Del. I already found the answer Pin
Albert Jann11-Dec-03 9:09
Albert Jann11-Dec-03 9:09 
GeneralSending paste message to another application Pin
MB_OK11-Dec-03 3:49
MB_OK11-Dec-03 3:49 
I'm trying to send a paste command to another application. A simple

SendMessage(hWnd, WM_PASTE, 0, 0);

works if the target is a CEdit or CCombo or similer. More specifically,
I can paste to notepad.exe and few other simple applications, but msvc6, msvc7 msword refuse to obey.

I tried something like this:

SendMessage(hWnd, WM_KEYDOWN, VK_CONTROL, 0x01);
SendMessage(hWnd, WM_KEYDOWN, 'V', 0x00);
SendMessage(hWnd, WM_KEYUP, 'V', 0x01);
SendMessage(hWnd, WM_KEYUP, VK_CONTROL, 0x01);

to simulate ctrl-V, but I only get two V characters.

I found this curious snippet somewhere in the web:

#define CTRL_V_PASTE 22
SendMessage(hWnd, WM_CHAR, CTRL_V_PASTE, 0);

but it doesn't work at all.

Any ideas?


GeneralRe: Sending paste message to another application Pin
MB_OK11-Dec-03 20:30
MB_OK11-Dec-03 20:30 
GeneralRe: Sending paste message to another application Pin
MB_OK11-Dec-03 20:32
MB_OK11-Dec-03 20:32 
GeneralCTreeCtrl weird problem Pin
rpadrela11-Dec-03 3:43
rpadrela11-Dec-03 3:43 
GeneralRe: CTreeCtrl weird problem Pin
Andrew Komiagin11-Dec-03 4:50
Andrew Komiagin11-Dec-03 4:50 
GeneralRe: CTreeCtrl weird problem Pin
rpadrela11-Dec-03 5:04
rpadrela11-Dec-03 5:04 
GeneralIterate through all the controls on CFormView Pin
Abebe11-Dec-03 2:44
Abebe11-Dec-03 2:44 
GeneralRe: Iterate through all the controls on CFormView Pin
jmkhael11-Dec-03 2:55
jmkhael11-Dec-03 2:55 
GeneralRe: Iterate through all the controls on CFormView Pin
Prakash Nadar11-Dec-03 2:57
Prakash Nadar11-Dec-03 2:57 
GeneralRe: Iterate through all the controls on CFormView Pin
Abebe11-Dec-03 3:36
Abebe11-Dec-03 3:36 
GeneralRe: Iterate through all the controls on CFormView Pin
Ravi Bhavnani11-Dec-03 3:13
professionalRavi Bhavnani11-Dec-03 3:13 
GeneralRe: Iterate through all the controls on CFormView Pin
Abebe11-Dec-03 3:38
Abebe11-Dec-03 3:38 
GeneralRe: Iterate through all the controls on CFormView Pin
Abebe11-Dec-03 3:47
Abebe11-Dec-03 3:47 
GeneralRe: Iterate through all the controls on CFormView Pin
Ravi Bhavnani11-Dec-03 5:45
professionalRavi Bhavnani11-Dec-03 5:45 
Generalabout record voice Pin
yingkou11-Dec-03 2:19
yingkou11-Dec-03 2:19 
GeneralRe: about record voice Pin
jmkhael11-Dec-03 3:03
jmkhael11-Dec-03 3:03 
GeneralRe: about record voice Pin
yingkou11-Dec-03 13:27
yingkou11-Dec-03 13:27 
GeneralRe: about record voice Pin
jmkhael11-Dec-03 22:03
jmkhael11-Dec-03 22:03 

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.