CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Yovav

Page 1 of 23 1 2 3 4

Search: Search took 0.28 seconds.

  1. Re: Problem dealing with non ABC ANSI characters

    How can I convert it to codepage 1255 ?

    I tried this code (between _tcscpy(wcBuffer, csText); and
    GlobalUnlock(hglbCopy);) - but no sucess yet:


    ...
  2. Re: How to set focus on the next window after minimizing ?

    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...
  3. Re: How to set focus on the next window after minimizing ?

    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)
  4. Problem dealing with non ABC ANSI characters

    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)
    ...
  5. Re: How to allow line breaks inside of a multiline CEdit control ?

    OK, Finally got it,

    I found out that I was processing VK_RETURN on PreTranslateMessage of that form

    (Opps :-)

    Thanks anyways.
  6. How to allow line breaks inside of a multiline CEdit control ?

    How can I allow the user to use Enter key to break the line inside of a multiline CEdit control ?

    Thanks in advance.
  7. Re: How to determine if the current window is the desktop ?

    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...)
  8. How to determine if the current window is the desktop ?

    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 ?
  9. Re: How to set focus on the next window after minimizing ?

    OK, I partially managed to do it with the following code:

    GetForegroundWindow()->ShowWindow(SW_SHOWMINIMIZED);

    CWnd* pCurrentWindow;
    POINT pt;

    GetCursorPos(&pt);
    pCurrentWindow =...
  10. How to set focus on the next window after minimizing ?

    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...
  11. Replies
    1
    Views
    762

    Re: Is there a ProductId on Windows 7 ?

    Hello me.

    Yes I checked - it is the same on Windows 7 and the key is readable.
  12. Replies
    1
    Views
    762

    Is there a ProductId on Windows 7 ?

    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...
  13. Replies
    21
    Views
    4,659

    Re: Pasting to any window

    Maybe this should be used (with different SE_ flags... ?):



    HANDLE hToken;
    TOKEN_PRIVILEGES tkp;

    if (!OpenProcessToken(GetCurrentProcess(), TOKEN_ADJUST_PRIVILEGES | TOKEN_QUERY, &hToken))...
  14. Replies
    21
    Views
    4,659

    Re: Pasting to any window

    I think this is the case here - I will try my app on an older OS and post the results here...
  15. Replies
    21
    Views
    4,659

    Re: Pasting to any window

    Very interesting article,

    So how can I set my app to be at the highest privilege level ?

    Anyone has a clue ?
  16. Replies
    21
    Views
    4,659

    Re: Pasting to any window

    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...
  17. Replies
    21
    Views
    4,659

    Re: Pasting to any window

    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...
  18. Replies
    21
    Views
    4,659

    Re: Pasting to any window

    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...
  19. Replies
    21
    Views
    4,659

    Re: Pasting to any window

    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);

    ...
  20. Replies
    21
    Views
    4,659

    Re: Pasting to any window

    Also, FYI: I'm running Vista 64bit
  21. Replies
    21
    Views
    4,659

    Re: Pasting to any window

    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 =...
  22. Replies
    21
    Views
    4,659

    Pasting to any window

    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...
  23. Re: How can I paste data to other windows (who ever is accepting) ?

    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 =...
  24. Re: How can I paste data to other windows (who ever is accepting) ?

    Make sense,

    So how can I set focus to where the cursor is ?
  25. How can I paste data to other windows (who ever is accepting) ?

    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...
Results 1 to 25 of 562
Page 1 of 23 1 2 3 4





Click Here to Expand Forum to Full Width

Featured