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

C / C++ / MFC

 
AnswerRe: is there any change in logic ? Pin
valikac23-Oct-02 17:37
valikac23-Oct-02 17:37 
GeneralRe: is there any change in logic ? Pin
imran_rafique24-Oct-02 15:15
imran_rafique24-Oct-02 15:15 
GeneralRe: is there any change in logic ? Pin
valikac24-Oct-02 15:50
valikac24-Oct-02 15:50 
Questionhow to make? Pin
imran_rafique23-Oct-02 15:15
imran_rafique23-Oct-02 15:15 
AnswerRe: how to make? Pin
Christian Graus23-Oct-02 16:28
protectorChristian Graus23-Oct-02 16:28 
GeneralRe: how to make? Pin
imran_rafique23-Oct-02 16:47
imran_rafique23-Oct-02 16:47 
GeneralRe: how to make? Pin
Christian Graus23-Oct-02 17:00
protectorChristian Graus23-Oct-02 17:00 
GeneralRe: how to make? Pin
imran_rafique23-Oct-02 17:34
imran_rafique23-Oct-02 17:34 
i am giving you some part of my code so that you could help.
plz see it.
if part works but else dont (which is my problem).


if(E_to_Match->message==WM_LBUTTONUP){
   ::SetCursorPos(fp.x,fp.y);
PostMessage(h,WM_LBUTTONDOWN,0/*E_to_Match->wParam*/,0);
PostMessage(h,WM_LBUTTONDOWN,0/*E_to_Match->wParam*/,0);
::Sleep(500);
PostMessage(h,E_to_Match->message,0/*E_to_Match->wParam*/,0);
   }else
	{
         ::Sleep(2000);
	PostMessage(h,E_to_Match->message,(WPARAM)E_to_Match->wParam,(LPARAM)E_to_Match->lParam);
	}


only else part dont work here.
Control tranfer here only when a keydown and keyup message appear

before that i store E_to_Match object and set its values
in a CALLBACK function

LRESULT CALLBACK JournalRecorderFunc(int nCode, WPARAM wParam, LPARAM lParam)
        {
        ...
        ...
        E_to_Match->Class_name=c_n;
	E_to_Match->W_text=wn;
        E_to_Match->wParam=(Int32)wParam;
	E_to_Match->f_point_x=f_point.x;
	E_to_Match->f_point_y=f_point.y;
	E_to_Match->lParam=(Int32)lParam;
	E_to_Match->C_pt_x=C_pt.x;
	E_to_Match->C_pt_y=C_pt.y;
	E_to_Match->w_Level=w_Level;
        LPEVENTMSG lpEvent2=(LPEVENTMSG)lParam;
	Current_event->message=lpEvent2->message;
        ....
        ....
}

plz reply whats the problem with else part?
what to do because in else part hwnd is correct but dont displa key that is pressed.
it perform both keydown and keyup messages.
when i placed following line of code it display 777 in edit box.
i dont know why.
PostMessage(h,E_to_Match->message,103,
(LPARAM)E_to_Match->lParam);
i am waiting for ur reply

r00d0034@yahoo.com
GeneralRe: how to make? Pin
Christian Graus23-Oct-02 17:54
protectorChristian Graus23-Oct-02 17:54 
GeneralRe: how to make? Pin
imran_rafique24-Oct-02 16:31
imran_rafique24-Oct-02 16:31 
GeneralSmall icon vs Large icon Pin
Paul Oss23-Oct-02 12:49
Paul Oss23-Oct-02 12:49 
GeneralRe: Small icon vs Large icon Pin
Paul M Watt23-Oct-02 13:18
mentorPaul M Watt23-Oct-02 13:18 
GeneralRe: Small icon vs Large icon Pin
Paul Oss23-Oct-02 16:45
Paul Oss23-Oct-02 16:45 
GeneralRe: Small icon vs Large icon Pin
Paul M Watt23-Oct-02 18:34
mentorPaul M Watt23-Oct-02 18:34 
GeneralRe: Small icon vs Large icon Pin
Michael Dunn23-Oct-02 13:30
sitebuilderMichael Dunn23-Oct-02 13:30 
QuestionVC++ 7 bug or what? Pin
Val Samko23-Oct-02 11:43
Val Samko23-Oct-02 11:43 
QuestionRaw Win32 API UI in a DLL...? Pin
dandy7223-Oct-02 10:27
dandy7223-Oct-02 10:27 
AnswerRe: Raw Win32 API UI in a DLL...? Pin
Paul M Watt23-Oct-02 12:16
mentorPaul M Watt23-Oct-02 12:16 
GeneralRe: Raw Win32 API UI in a DLL...? Pin
dandy7224-Oct-02 3:47
dandy7224-Oct-02 3:47 
AnswerRe: Raw Win32 API UI in a DLL...? Pin
Mike Nordell24-Oct-02 4:06
Mike Nordell24-Oct-02 4:06 
GeneralRe: Raw Win32 API UI in a DLL...? Pin
dandy7224-Oct-02 8:56
dandy7224-Oct-02 8:56 
GeneralList/Array - finding items Pin
User 665823-Oct-02 10:19
User 665823-Oct-02 10:19 
GeneralRe: List/Array - finding items Pin
Dave Bryant23-Oct-02 10:27
Dave Bryant23-Oct-02 10:27 
GeneralRe: List/Array - finding items Pin
Daniel Turini23-Oct-02 10:35
Daniel Turini23-Oct-02 10:35 
GeneralRe: List/Array - finding items Pin
User 665823-Oct-02 13:14
User 665823-Oct-02 13:14 

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.