OK, Finally got it, I found out that I was processing VK_RETURN on PreTranslateMessage of that form (Opps :-)) Thanks anyways.
Best Regards - Yovav Gad CEO and founder of MicroMighty, Inc.
OK, Finally got it, I found out that I was processing VK_RETURN on PreTranslateMessage of that form (Opps :-)) Thanks anyways.
Best Regards - Yovav Gad CEO and founder of MicroMighty, Inc.
OK, Finally got it, I found out that I was processing VK_RETURN on PreTranslateMessage of that form (Opps :-)) Thanks anyways.
Best Regards - Yovav Gad CEO and founder of MicroMighty, Inc.
My "Want Return" property is True but its still doesn't work, I'm using the ON_EN_CHANGE event OnEnChangeEditPlanData() (but VK_RETURN does not even go in there) Also using Vista 64 but dont think it should matter.
Best Regards - Yovav Gad CEO and founder of MicroMighty, Inc.
How can I allow the user to use Enter key to break the line inside of a multiline CEdit control ? Thanks in advance.
Best Regards - Yovav Gad CEO and founder of MicroMighty, Inc.
I tried this: if (GetForegroundWindow()->m_hWnd == GetDesktopWindow()->m_hWnd) But it doesn't work
Best Regards - Yovav Gad CEO and founder of MicroMighty, Inc.
Hi, The other day I just figured out the Vista has different interface for accessing mixers (volume controls) because of new security restrictions it only allow your application to see stuff in your level, In other words - you can only set / select the audio channel that your application is using, Look at this: IAudioEndpointVolume Interface[^]
Best Regards - Yovav Gad CEO and founder of MicroMighty, Inc.
I only want to minimize a window if its not the desktop window (with all the icons) Maybe I can use GetForegroundWindow() somehow ? How can I do that ?
Best Regards - Yovav Gad CEO and founder of MicroMighty, Inc.
OK, I partially managed to do it with the following code: GetForegroundWindow()->ShowWindow(SW_SHOWMINIMIZED); CWnd* pCurrentWindow; POINT pt; GetCursorPos(&pt); pCurrentWindow = WindowFromPoint(pt); pCurrentWindow->SetForegroundWindow(); The problem is that it will only get the focus of windows behind the cursor (mouse) Any idea how to get the next window regardless to the cursor location ?
Best Regards - Yovav Gad CEO and founder of MicroMighty, Inc.
modified on Saturday, April 25, 2009 6:11 AM
How can I set the focus to the next open window after I minimize some other window ? For example: I have the following apps open: IE, Word, Notepad When I minimize - Notepad is going to the task bar, At this point I lose the focus and the other open windows cannot be minimized (My program do minimize the current window in focus when I click something) This is what I tried: GetForegroundWindow()->ShowWindow(SW_SHOWMINIMIZED); Sleep(1000); // Let it minimize ? ::GetWindow(GetForegroundWindow()->m_hWnd, GW_HWNDNEXT); Any ideas ?
Best Regards - Yovav Gad CEO and founder of MicroMighty, Inc.
I don't understand exactly how the WM_PASTE message is getting picked up, but it might be safe to broardcast it everywhere if it only getting picked up in one place where the cursor and focus is, remember - my intention is to let the user who already have his cursor focused on some text control to paste specific data, but the user must put the focus first before it will do anything...
Best Regards - Yovav Gad CEO and founder of MicroMighty, Inc.
Well, its not really a problem - because I am sending the "WM_PASTE" message only to that specific control on which the user had put the cursor on, POINT pt; GetCursorPos(&pt); editControl = WindowFromPoint(pt); editControl->GetFocus(); editControl->SendMessage(WM_PASTE, 0, 0); Also - the user is not going to lose control over anything, This program gonna help users run and paste data exactly like they want it.
Best Regards - Yovav Gad CEO and founder of MicroMighty, Inc.
Yea, you are probably right, I made some progress, however - it only works in some places (like notepad...) POINT pt; GetCursorPos(&pt); CWnd* editControl; editControl = WindowFromPoint(pt); editControl->GetFocus(); editControl->SendMessage(WM_PASTE, 0, 0); I also tried to programatically click Ctrl+V and cause a paste like this: ::SendMessage(GetForegroundWindow()->m_hWnd, WM_CHAR, 22, 0x56); But it seems to have the same problem - only works in some places (like notepad...) I wonder how can I better send the Ctrl+V and make the window/control think he got Ctrl+V clicked and do the paste for me (to which ever CEdit / CView control being used) Please let me know if you have any suggestions.
Best Regards - Yovav Gad CEO and founder of MicroMighty, Inc.
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
Dear all. I have a web cam solution that generates a picture every time I hit http://The_IP_Address I'm trying to show a web cam motion - so it can look like a live video (every 1 sec or so) That is working but the problem is that ALL the page is getting refreshed and I get flickering (the picture is being cleared with a white background before the next picture shows) How can I avoid that flickering - do U know any Web Form / Server side control that can get an image and show it over the old image ? (maybe using AJAX ???) I wanna do something like "double buffering"... { H - E - L - P } Best Regards - Yovav Gad EMail: Dev@GadWorks.com Web-Site: www.GadWorks.com
:mad:I Need a Class To Show JPG On a Dialog Should It Be Done With CPaintDC ??? I Also Need To Show JPG Files As Well As Resources Attached To My Project... Help U Very Much...:-O: Best Regards - Yovav Gad EMail: Yovav@SuperMain.com Web-Site: www.SuperMain.com