Click here to Skip to main content
15,913,910 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionLparam and Param ? Pin
imran_rafique20-Oct-02 16:57
imran_rafique20-Oct-02 16:57 
GeneralClipboard into Notepad Pin
Shay Harel20-Oct-02 16:41
Shay Harel20-Oct-02 16:41 
GeneralRe: Clipboard into Notepad Pin
Neville Franks20-Oct-02 16:58
Neville Franks20-Oct-02 16:58 
Questionu (key)is typed into edit box ? Pin
imran_rafique20-Oct-02 16:33
imran_rafique20-Oct-02 16:33 
AnswerRe: u (key)is typed into edit box ? Pin
Christian Graus20-Oct-02 16:41
protectorChristian Graus20-Oct-02 16:41 
GeneralRe: u (key)is typed into edit box ? Pin
imran_rafique20-Oct-02 17:31
imran_rafique20-Oct-02 17:31 
GeneralRe: u (key)is typed into edit box ? Pin
Christian Graus20-Oct-02 17:44
protectorChristian Graus20-Oct-02 17:44 
GeneralRe: u (key)is typed into edit box ? Pin
imran_rafique21-Oct-02 14:28
imran_rafique21-Oct-02 14:28 
thanks for advise.
but i have seen that thing many time.i am developing project.
first of all i recorded messages of keboard and mouse and after recording i was replaying the same events.i have no problem by posting mouse messages but i have problem with keboard messages.
i have both lparam and wparam but i have to store it first for that purpose i typecast it into int32 lparam and int32 wparam that is why E_to_Match->lparam is int32.
In if condition mouse messages work correctely where E_to_Match->message is also int32 but let me tell you how i get message in it
LPEVENTMSG lpEvent= (LPEVENTMSG)lParam;
E_to_Match->message=(int32)lpEvent->message;
in the same way i have stroed lparam and wparam.
plz see that code.


><
if(E_to_Match->message==WM_LBUTTONUP)
  {
::SetCursorPos(fp.x,fp.y);
PostMessage(h,WM_LBUTTONDOWN,0,0);
PostMessage(h,WM_LBUTTONDOWN,0,0);
::Sleep(500);
PostMessage(h,E_to_Match->message,0,0);
//it works but question here is that why i have to call 
//PostMessage(h,WM_LBUTTONDOWN,0,0); two times and 
//::Sleep(500); i dont know but with out this my 
//code didnt work.cau u ans this question too.
  }else
      {
	::Sleep(2000);
PostMessage(h,E_to_Match->message,(WPARAM)E_to_Match->wParam,(LPARAM)E_to_Match->lparam);
}


else condition dont work when that postmessage line executed i dont know why but one thing i know that the following line display 777 into that editbox (of hwnd h).
thats mean mine hwnd is correct.
PostMessage(h,E_to_Match->message,103,(LPARAM)E_to_Match->lParam);
now plz tell i will be very thankful i am also trying my best effort too.

r00d0034@yahoo.com
Generaldialog bar - tab order Pin
User 988520-Oct-02 12:59
User 988520-Oct-02 12:59 
GeneralRe: dialog bar - tab order Pin
Tomasz Sowinski21-Oct-02 0:23
Tomasz Sowinski21-Oct-02 0:23 
GeneralCPropertySheet Pin
Max Santos20-Oct-02 12:27
Max Santos20-Oct-02 12:27 
GeneralRe: CPropertySheet Pin
Tomasz Sowinski21-Oct-02 0:24
Tomasz Sowinski21-Oct-02 0:24 
GeneralRe: CPropertySheet Pin
Max Santos23-Oct-02 13:51
Max Santos23-Oct-02 13:51 
QuestionDouble Buffering in a Dialog?? Pin
David_Jenkins20-Oct-02 12:06
David_Jenkins20-Oct-02 12:06 
AnswerRe: Double Buffering in a Dialog?? Pin
Chris Losinger20-Oct-02 12:11
professionalChris Losinger20-Oct-02 12:11 
AnswerRe: Double Buffering in a Dialog?? Pin
alex.barylski20-Oct-02 12:14
alex.barylski20-Oct-02 12:14 
AnswerRe: Double Buffering in a Dialog?? Pin
Paul M Watt20-Oct-02 18:04
mentorPaul M Watt20-Oct-02 18:04 
GeneralRe: Double Buffering in a Dialog?? Pin
David_Jenkins21-Oct-02 2:12
David_Jenkins21-Oct-02 2:12 
GeneralRe: Double Buffering in a Dialog?? Pin
Paul M Watt21-Oct-02 4:18
mentorPaul M Watt21-Oct-02 4:18 
GeneralRe: Double Buffering in a Dialog?? Pin
David_Jenkins22-Oct-02 4:42
David_Jenkins22-Oct-02 4:42 
Generalstructure access from another view.. Pin
Anonymous20-Oct-02 11:07
Anonymous20-Oct-02 11:07 
GeneralRe: structure access from another view.. Pin
Joaquín M López Muñoz20-Oct-02 11:11
Joaquín M López Muñoz20-Oct-02 11:11 
GeneralRe: structure access from another view.. Pin
Anonymous20-Oct-02 11:29
Anonymous20-Oct-02 11:29 
GeneralRe: structure access from another view.. Pin
Joaquín M López Muñoz20-Oct-02 11:33
Joaquín M López Muñoz20-Oct-02 11:33 
GeneralRe: structure access from another view.. Pin
Anonymous20-Oct-02 11:41
Anonymous20-Oct-02 11:41 

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.