Search:

Type: Posts; User: Delf

Search: Search took 0.00 seconds.

  1. Replies
    10
    Views
    1,698

    He's not my friend - he was just potential...

    He's not my friend - he was just potential customer and I hope it stays that way. Who needs friends with custom window managers?!



    Good idea! Maybe this weekend if I find some extra time.
    ...
  2. Replies
    10
    Views
    1,698

    Hi, in my code I handle WM_SIZING, I carefully...

    Hi,

    in my code I handle WM_SIZING, I carefully supply correct values in WM_GETMINMAXINFO and in the end I double-check everything in WM_WINDOWPOSCHANGED and WM_SIZE for final corrections, and it...
  3. Thread: Status bar

    by Delf
    Replies
    1
    Views
    1,543

    Try this: SendMessage(hStatus,...

    Try this:




    SendMessage(hStatus, SB_SETPARTS, 2, (LPARAM) statwidths);


    This should work, I hope.
  4. Try this one: int CopyAllFiles ( char ...

    Try this one:


    int CopyAllFiles (
    char *wildStr,
    char *srcPath,
    char *dstPath
    )
    {
    HANDLE hf;
  5. Replies
    13
    Views
    7,161

    Yesterday I uploaded latest version of my app to...

    Yesterday I uploaded latest version of my app to my web server and then downloaded it to my notebook. It crashed before splash screen with stack overflow or some message like that.

    I went back to...
  6. Replies
    5
    Views
    2,156

    If everything else fails... yes, I can always go...

    If everything else fails... yes, I can always go to registry and do what
    it takes. I just wanted to see if there's a way to avoid it: Darg&Drop
    install, non privileged users, etc.
  7. Replies
    5
    Views
    2,156

    Custom Icon for DLL

    Hi,

    Is it possible to give some custom icon to a DLL.

    So far, I have DllMain and resource (.rc) file with an icon, but
    the icon is not used in Explorer for my dll.

    At some moment, I changed...
  8. Replies
    3
    Views
    3,861

    Google like this:...

    Google like this: http://www.google.com/search?q=OleLoadPicture+LoadResource
  9. Replies
    1
    Views
    3,111

    You'll need AddFontMemResourceEx(), but it works...

    You'll need AddFontMemResourceEx(), but it works only on 2K & XP.
  10. Thread: Printing Bitmaps

    by Delf
    Replies
    4
    Views
    1,189

    Petzold, 5th edition, Chapter 13 - Using the...

    Petzold, 5th edition, Chapter 13 - Using the Printer, Application - DevCaps2.
    Amazing utility for exploring the printers and printing code in general.

    And btw, DevCap2 told me that in fact my...
  11. Thread: What is a menu?

    by Delf
    Replies
    4
    Views
    1,303

    Yes, and I wander now what GetFocus() returns...

    Yes,

    and I wander now what GetFocus() returns when menu bar has a focus?!
    Like, when I just press alt key without any other letter-key.
  12. Replies
    9
    Views
    7,923

    For a moment I had a feeling that I'm getting...

    For a moment I had a feeling that I'm getting somewhere...

    The problem is - well, there are two problems:

    1. MSDN is wrong,
    2. Disabled edit controls really do use WM_CTLCOLORSTATIC when...
  13. Replies
    9
    Views
    7,923

    Thanks for being patient with a stubborn person -...

    Thanks for being patient with a stubborn person - ME!

    I do handle WM_CTLCOLORSTATIC but it's like this:


    LRESULT StdOnCtlColorStatic (HWND hwnd, WPARAM wParam, LPARAM lParam) // hwnd of real...
  14. Replies
    9
    Views
    7,923

    Are you sure? You mean disabled with...

    Are you sure? You mean disabled with EnableWindow(..., FALSE) ?

    I do handle WM_CTLCOLORSTATIC and it doesn't affect disable controls.

    In the CodeProject's article Quantrizi posted above there...
  15. Replies
    9
    Views
    7,923

    It would be WM_CTLCOLOREDIT & WM_CTLCOLORSTATIC....

    It would be WM_CTLCOLOREDIT & WM_CTLCOLORSTATIC.

    Something like:



    case WM_CTLCOLOREDIT:
    SetTextColor (hdc, txtColor);
    SetBkColor (hdc, bkColor);
  16. Replies
    3
    Views
    1,250

    Old version of Petzold had this example. I think...

    Old version of Petzold had this example. I think it was 4th edition and if I
    remember right, I have stumbled on source code of the Petzolds on the
    Internet somewhere.
  17. Replies
    5
    Views
    1,591

    Seems like you'll need to do it by yourself. Or...

    Seems like you'll need to do it by yourself. Or download WINE and build
    something similar looking at their code. I always hated dialogs with
    just Yes/No/OK etc. It is much better and safer for the...
  18. Thread: Width of string

    by Delf
    Replies
    2
    Views
    1,478

    This should help: SIZE txtSize; ...

    This should help:

    SIZE txtSize;

    GetTextExtentPoint32 (hdc, theText, strlen(theText), &txtSize);

    Then use txtSize.cx an txtSize.cy
  19. Replies
    3
    Views
    1,650

    Add something like this: case ...

    Add something like this:



    case WM_CHAR:
    switch (wParam) {
    case VK_RETURN:
    return (0);
    }
    break;
  20. Thread: MessageBox-a-like

    by Delf
    Replies
    1
    Views
    912

    Well why not. At least Wine code is doing it. ...

    Well why not. At least Wine code is doing it.



    /* Get the text size */
    GetClientRect(GetDlgItem(hwnd, MSGBOX_IDTEXT), &rect);
    rect.top = rect.left = rect.bottom = 0;
    ...
  21. Replies
    9
    Views
    1,905

    None of variables has hwnd as part of it's name,...

    None of variables has hwnd as part of it's name,
    but, I suppose tp[FRM] is of type HWND?

    What you are doing is Getting the Rect of a control,
    and invalidating that area within control. Maybe you...
  22. Since there are still no other replys, maybe I...

    Since there are still no other replys, maybe I can help you at
    least with some small hints.

    Look at site of John Walker (AutoCad,...) and look there
    for source code. It's www.fourmilab.ch.

    He...
Results 1 to 22 of 22