Search:
Type: Posts; User: Yovav
Search:
Search took 0.28 seconds.
-
April 28th, 2009, 11:11 AM
How can I convert it to codepage 1255 ?
I tried this code (between _tcscpy(wcBuffer, csText); and
GlobalUnlock(hglbCopy);) - but no sucess yet:
...
-
April 28th, 2009, 12:20 AM
Just the next window that gets the focus after the last one was minimized,
I was using this:
GetForegroundWindow()->ShowWindow(SW_SHOWMINIMIZED);
// Put the focus on the next window under the...
-
April 27th, 2009, 06:59 PM
Thanks for the tip,
it causes all the windows to close,
What would be a good way to detect the current active window ?
I tried this:
if (GetActiveWindow() == hwnd)
-
April 27th, 2009, 06:17 PM
I'm using a CEdit to type text which I copy to clipboard,
When I do it for the first time it works - I can see the value saved in the registry in Hebrew (this is the local ANSI language)
...
-
April 27th, 2009, 08:49 AM
OK, Finally got it,
I found out that I was processing VK_RETURN on PreTranslateMessage of that form
(Opps :-)
Thanks anyways.
-
April 26th, 2009, 10:11 PM
How can I allow the user to use Enter key to break the line inside of a multiline CEdit control ?
Thanks in advance.
-
April 25th, 2009, 10:31 AM
I tried this:
if (GetForegroundWindow()->m_hWnd == GetDesktopWindow()->m_hWnd)
But it doesn't work
(I'm using Vista 64 bit - wonder if its the same...)
-
April 25th, 2009, 04:09 AM
Dear Gurus.
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 ?
-
April 25th, 2009, 03:54 AM
OK, I partially managed to do it with the following code:
GetForegroundWindow()->ShowWindow(SW_SHOWMINIMIZED);
CWnd* pCurrentWindow;
POINT pt;
GetCursorPos(&pt);
pCurrentWindow =...
-
April 25th, 2009, 03:30 AM
Dear Gurus.
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...
-
April 21st, 2009, 08:20 PM
Hello me.
Yes I checked - it is the same on Windows 7 and the key is readable.
-
April 17th, 2009, 07:20 PM
Is there a key named "ProductId" in Windows 7 under :
SOFTWARE\Microsoft\Windows NT\CurrentVersion
(or was it changed to something else ?)
Also, do I need to have special privileges in...
-
April 17th, 2009, 05:27 AM
Maybe this should be used (with different SE_ flags... ?):
HANDLE hToken;
TOKEN_PRIVILEGES tkp;
if (!OpenProcessToken(GetCurrentProcess(), TOKEN_ADJUST_PRIVILEGES | TOKEN_QUERY, &hToken))...
-
April 10th, 2009, 04:11 PM
I think this is the case here - I will try my app on an older OS and post the results here...
-
April 10th, 2009, 10:49 AM
Very interesting article,
So how can I set my app to be at the highest privilege level ?
Anyone has a clue ?
-
April 7th, 2009, 03:24 AM
Yes, thats true - I rather make it work with CWnd or by broadcasting some message than try to talk to each control separately,
I dont intend to try figure out how to post it through IE COM...
-
April 6th, 2009, 10:42 AM
I like your SendInput sequence better, but I'm getting the same results,
if you say its working for you then I really start to think that it is something related to my Vista 64bit
I will try it...
-
April 5th, 2009, 04:36 PM
Yes I was trying to paste into Word,
When I hit a hot key my function do copy the data into clipboard, but on Word it does not do the paste,
however, if I hit Ctrl+V it does copy my value from...
-
April 5th, 2009, 04:21 PM
Still the same results - works on notepad but not in Word or in browser's textboxes
I've added this:
((CEdit*)editControl)->Paste();
instead of editControl->SendMessage(WM_PASTE, 0, 0L);
...
-
April 5th, 2009, 03:23 PM
Also, FYI: I'm running Vista 64bit
-
April 5th, 2009, 03:18 PM
Still the same results - works on notepad but not in Word or in browser's textboxes
This is what I've used:
(should I try to change anything ?)
INPUT *key;
key = new INPUT;
key->type =...
-
April 5th, 2009, 11:52 AM
I managed to paste text that is currently in the clipboard using this:
CString csText = "Test";
HGLOBAL hglbCopy;
if(OpenClipboard())
{
EmptyClipboard();
TCHAR *wcBuffer = 0;
hglbCopy...
-
April 3rd, 2009, 03:32 AM
I only want to paste text,
I made some progress, however - it only works in some places (like notepad...)
POINT pt;
GetCursorPos(&pt);
CWnd* editControl;
editControl =...
-
April 3rd, 2009, 02:54 AM
Make sense,
So how can I set focus to where the cursor is ?
-
April 2nd, 2009, 10:03 PM
Dear Gurus,
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...
|
Click Here to Expand Forum to Full Width
|