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

Search:

Type: Posts; User: VladimirF

Page 1 of 80 1 2 3 4

Search: Search took 0.12 seconds.

  1. Re: Hook SendMessage for background processes

    Is that what you are trying to do? This has nothing to do with hooking window procedure, and even less - with WM_SETTEXT message.
  2. Replies
    3
    Views
    312

    Re: Windows basic questions

    Everything you ever wanted to know About Window Classes.
    Different processes can register different classes with the same name.
  3. Re: Code to measure CPU usage returns inconsistent results for overclocked CPU

    I understood that this was not an assumption, but observation.

    That is only true for "lazy" system. Try video encoding - it will keep your CPU at 100% for hours...
  4. Re: Code to measure CPU usage returns inconsistent results for overclocked CPU

    Not sure what you read first - here or there, but could you try QueryPerformanceFrequency() on that CPU? Does it reflect regular or overclocked speed?
  5. Re: win32 - how can i add more flags to messagebox?

    I am with OReubens on that: don't use MessageBox() function if you need customization. Just create your own DialogBox and make it as flexible as you need.
    There is only one feature of the MessageBox...
  6. Re: win32- hook: how changing the aligment text and position of messagebox?

    What flags are you asking about? Could you please explain?
  7. Re: win32- hook: how changing the aligment text and position of messagebox?

    I can say that the STATIC child control is not yet created. Are you calling that from your HCBT_CREATEWND? If yes - it is too early. Try HCBT_ACTIVATE.
  8. Re: win32- hook: how changing the aligment text and position of messagebox?

    Try DebugView at http://technet.microsoft.com/en-us/sysinternals/bb896647.aspx
  9. Re: win32- hook: how changing the aligment text and position of messagebox?

    1. Your test is strange: you are trying to create a MessageBox form the hook set on creation of message boxes; looks like infinite recursion.
    2. Because of #1 and multiple other reasons, NEVER use...
  10. Re: How to synchronize a worker thread from the main thread?

    What do you mean by that:

    Isn't it a contradiction?
  11. Replies
    27
    Views
    1,717

    Re: Encrypt/Decrypt Problem

    SUB is 0x1A, or Ctrl+Z, which sometimes is used as an end-of-file mark.
    However, since you open your file as std::ifstream::binary, that should not matter.
    Are you sure that your string is...
  12. Re: [RESOLVED] win32 - how center a control depending on it's parent position and siz

    Do you want to NOT count caption and border of the parent window? Then use GetClientRect() instead of GetWindowRect().
    Please note: client rectangle is always in client's coordinates.

    Also please...
  13. Replies
    27
    Views
    1,717

    Re: Encrypt/Decrypt Problem

    Apparently, the problem is in writing/reading the encrypted string to a file.
    What is filewrite()? And is there fileread()?
  14. Re: EnumChildWindows & FindWindow doesn't work MFC but works Console

    What is counter_Child6++? Where is it defined? How is it initialized?
    Did you debug your EnumChildProc2() function? Is it called? How many times? Looks like counter_Child6 is never equal to 6......
  15. Re: EnumChildWindows & FindWindow doesn't work MFC but works Console

    ...unless you call it from the class that is derived from CWnd. In that case, you would need to specify global scope to get the HWND version:

    HWND hWnd = ::FindWindow(_T("#32770"), _T("Unable to...
  16. Re: [RESOLVED] GDI - can i speed up the DIB code?

    you are welcome
  17. Re: GDI - can i speed up the DIB code?

    That's cool, but I wonder if it will be any faster than my last posted code.
    This example does pretty much the same thing, but it manipulates region data directly.
  18. Re: GDI - can i speed up the DIB code?

    Oops... I incorrectly used SetRectRgn() function by passing the width of the rectangle instead of its right coordinate.
    Here is corrected code:


    DWORD p = 0;
    int xStart = 0;
    bool...
  19. Re: GDI - can i speed up the DIB code?

    I might have missed something.
    Could you please upload your zipped test project (without Debug/Release folders) here?
    What bitmap do you pass to function HRGN RegionbyBitmap(HBITMAP...
  20. Re: GDI - can i speed up the DIB code?

    This is JPEG (compressed).
    Do you have the original BMP image? And what color is used to convert to transparent?
  21. Re: GDI - can i speed up the DIB code?

    Could you please attach the original bitmap you are trying to convert?
  22. Re: GDI - can i speed up the DIB code?

    Try this in place of your scanning code:


    // ---------------------------------------------------------
    // scan the bitmap
    // ---------------------------------------------------------

    DWORD p...
  23. Replies
    14
    Views
    2,118

    Re: ListView with CheckBox Alignment Problem

    See my post #7 above; not the rocket science.
  24. Re: GDI - can i speed up the DIB code?

    Did you profile your code? Do you know which part takes most of the time? Is it Get24BitPixels() or RegionbyBitmap()?
    Do you have a lot of transparent pixels in your bitmap?
    I assume that most of...
  25. Replies
    14
    Views
    2,118

    Re: ListView with CheckBox Alignment Problem

    I think I understand you (after all, we share cultural roots).
    There are two solution to a generalized problem:
    If you perform action A, the feature B doesn't work correctly.
    1. Fix feature B.
    2....
Results 1 to 25 of 2000
Page 1 of 80 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a Codeguru.com survey!


HTML5 Development Center