Click here to Skip to main content
15,884,099 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionReading from fstream in CString object Pin
Anuj Sharma2-Apr-09 18:53
Anuj Sharma2-Apr-09 18:53 
QuestionRe: Reading from fstream in CString object Pin
«_Superman_»2-Apr-09 19:05
professional«_Superman_»2-Apr-09 19:05 
AnswerRe: Reading from fstream in CString object Pin
Anuj Sharma2-Apr-09 19:24
Anuj Sharma2-Apr-09 19:24 
GeneralRe: Reading from fstream in CString object Pin
«_Superman_»2-Apr-09 19:30
professional«_Superman_»2-Apr-09 19:30 
GeneralRe: Reading from fstream in CString object Pin
Stuart Dootson2-Apr-09 21:24
professionalStuart Dootson2-Apr-09 21:24 
GeneralRe: Reading from fstream in CString object Pin
krmed3-Apr-09 0:47
krmed3-Apr-09 0:47 
QuestionPopupDailog steal the current focus Pin
S p k 5212-Apr-09 18:13
S p k 5212-Apr-09 18:13 
QuestionHow can I paste data to other windows (who ever is accepting) ? [modified] Pin
Yovav2-Apr-09 17:07
Yovav2-Apr-09 17:07 
When I click a hot key combination (Ctrl+Shift+P) my program do copy some text to the clibboard,

So I can paste it to any window by holding Ctrl+V

Now I like to automate this and be able to do the Ctrl+V programatically,

Lets assume I just want to paste just anything to other windows - so I can get started,



I have tried this, but I guess I'm missing something:

SendMessage(WM_PASTE, 0,0);

also tried:

BroadcastSystemMessage(BSF_POSTMESSAGE | BSF_IGNORECURRENTTASK,
BSM_ALLCOMPONENTS,
WM_PASTE,
(WPARAM)NULL,
(LPARAM)NULL);


I'd like to broadcast a "paste" message (or "Ctrl+V") so I will not have to find the current active window and get its focus,


Any suggestions ?

Best Regards - Yovav Gad
CEO and founder of MicroMighty, Inc.

modified on Thursday, April 2, 2009 11:58 PM

AnswerRe: How can I paste data to other windows (who ever is accepting) ? Pin
Niklas L2-Apr-09 23:02
Niklas L2-Apr-09 23:02 
GeneralRe: How can I paste data to other windows (who ever is accepting) ? Pin
Yovav3-Apr-09 1:23
Yovav3-Apr-09 1:23 
QuestionRe: How can I paste data to other windows (who ever is accepting) ? Pin
David Crow3-Apr-09 3:15
David Crow3-Apr-09 3:15 
AnswerRe: How can I paste data to other windows (who ever is accepting) ? Pin
Iain Clarke, Warrior Programmer3-Apr-09 1:22
Iain Clarke, Warrior Programmer3-Apr-09 1:22 
GeneralRe: How can I paste data to other windows (who ever is accepting) ? Pin
Yovav3-Apr-09 1:35
Yovav3-Apr-09 1:35 
GeneralRe: How can I paste data to other windows (who ever is accepting) ? Pin
Niklas L3-Apr-09 2:40
Niklas L3-Apr-09 2:40 
GeneralRe: How can I paste data to other windows (who ever is accepting) ? Pin
Iain Clarke, Warrior Programmer3-Apr-09 2:53
Iain Clarke, Warrior Programmer3-Apr-09 2:53 
GeneralRe: How can I paste data to other windows (who ever is accepting) ? Pin
David Crow3-Apr-09 3:18
David Crow3-Apr-09 3:18 
GeneralRe: How can I paste data to other windows (who ever is accepting) ? Pin
Yovav3-Apr-09 20:29
Yovav3-Apr-09 20:29 
QuestionHow to get a huge struct array? Pin
jebbe2-Apr-09 16:02
jebbe2-Apr-09 16:02 
AnswerRe: How to get a huge struct array? Pin
Luc Pattyn2-Apr-09 16:41
sitebuilderLuc Pattyn2-Apr-09 16:41 
JokeRe: How to get a huge struct array? Pin
Niklas L2-Apr-09 23:35
Niklas L2-Apr-09 23:35 
GeneralRe: How to get a huge struct array? Pin
jebbe3-Apr-09 20:24
jebbe3-Apr-09 20:24 
AnswerRe: How to get a huge struct array? Pin
Stuart Dootson2-Apr-09 21:19
professionalStuart Dootson2-Apr-09 21:19 
GeneralRe: How to get a huge struct array? Pin
jebbe3-Apr-09 20:28
jebbe3-Apr-09 20:28 
AnswerRe: How to get a huge struct array? Pin
Iain Clarke, Warrior Programmer3-Apr-09 1:51
Iain Clarke, Warrior Programmer3-Apr-09 1:51 
GeneralRe: How to get a huge struct array? Pin
Niklas L3-Apr-09 2:58
Niklas L3-Apr-09 2:58 

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.