Search:

Type: Posts; User: anonytmouse

Page 1 of 20 1 2 3 4

Search: Search took 0.04 seconds.

  1. Replies
    4
    Views
    2,993

    You could have a look at PathCleanupSpec...

    You could have a look at PathCleanupSpec, but you can only be sure you can create a file by creating it (you may not have permission, a network drive may be offline, etc).
  2. Replies
    14
    Views
    40,049

    Just to add some confusion, another option is to...

    Just to add some confusion, another option is to call the command interpreter with CreateProcess.
  3. Replies
    6
    Views
    5,002

    I don't think you should do any redrawing until...

    I don't think you should do any redrawing until all the controls are moved. Use MoveWindow with FALSE as the last argument and only call UpdateWindow at the end (you can probably even avoid using...
  4. Replies
    4
    Views
    1,545

    void GetChildPos(HWND hwndParent, HWND hwndChild,...

    void GetChildPos(HWND hwndParent, HWND hwndChild, RECT* prc)
    {
    GetWindowRect(hwndChild, prc);

    ScreenToClient(hwndParent, (POINT*) &prc->left)
    ScreenToClient(hwndParent, (POINT*)...
  5. Replies
    10
    Views
    10,757

    A LOGFONT can be obtained from an HFONT using...

    A LOGFONT can be obtained from an HFONT using GetObject.

    The font should be set in WM_INITDIALOG.
  6. Replies
    4
    Views
    1,545

    ScreenToClient...

    ScreenToClient
  7. Replies
    17
    Views
    4,590

    Another thing to consider is that...

    Another thing to consider is that Get[Save/Open]FileName are re-entrant. Your window procedure(s) will continue to be called while waiting for them to return. Consider what will happen if you are...
  8. Replies
    6
    Views
    5,002

    >> is this the standard solution for this task?...

    >> is this the standard solution for this task? <<

    No, WM_GETMINMAXINFO is.

    Typically, client controls are resized/positioned in response to a WM_SIZE message.
  9. Replies
    5
    Views
    3,652

    HTML Applications...

    HTML Applications are another way to implement Fordy's solution.
  10. Or you can use fgets as suggested by Daved: ...

    Or you can use fgets as suggested by Daved:


    bool LoadListbox(char* sFileName, HWND hWndDlg, int controlID)
    {
    char sLine[1024];
    FILE* hFile;

    hFile = fopen(sFileName, "r");
  11. Replies
    2
    Views
    1,572

    It is the C library functions that do character...

    It is the C library functions that do character translation before writing to the OS stdout handle.

    You can change stdout to use binary mode to avoid character translation.
    ...
  12. Replies
    4
    Views
    1,651

    SetFileTime...

    SetFileTime
  13. Replies
    4
    Views
    1,743

    Try using NULL for the taskbar handle.

    Try using NULL for the taskbar handle.
  14. WS_HSCROLL and/or WS_VSCROLL

    WS_HSCROLL and/or WS_VSCROLL
  15. Replies
    2
    Views
    5,023

    You need to copy the address as well as the...

    You need to copy the address as well as the address type:


    hp = gethostbyname(abc);
    sa.sin_family = hp->h_addrtype;
    memcpy(&sa.sin_addr, hp->h_addr, sizeof(sa.sin_addr));
    ...
  16. Replies
    2
    Views
    1,384

    I think you want to check the foreground window...

    I think you want to check the foreground window rather than the focus, something like the following:


    HWND hForegnd;
    DWORD pidWindow;

    hForegnd = GetForegroundWindow();...
  17. Replies
    1
    Views
    1,212

    A couple of links:...

    A couple of links:
    http://www.codeproject.com/shell/shellcontextmenu.asp
    http://www.google.com/search?q=site&#37;3Ablogs.msdn.com+old+new+thing+icontextmenu
  18. I haven't read all the posts but are you talking...

    I haven't read all the posts but are you talking about that guy who got into trouble for exposing the super secret military space-plane, and then got pardoned by the president at the last minute? I...
  19. Replies
    2
    Views
    1,434

    A couple of links:...

    A couple of links:
    http://discuss.fogcreek.com/joelonsoftware/default.asp?cmd=show&ixPost=2931
    http://www.google.com/search?q=xdelta
  20. Replies
    12
    Views
    4,262

    You can probably still use SHGetFileInfo....

    You can probably still use SHGetFileInfo. Something like this:


    LPITEMIDLIST pidl = NULL;

    /* Get the pidl for My Computer. See function documentation for other CSIDLs. */...
  21. Replies
    12
    Views
    4,262

    >> Also, while im polling the folders, is it...

    >> Also, while im polling the folders, is it possible to only grab files that are not hidden or system folders/files? <<

    Use GetFileAttributes.

    >> Thanks all for the help, I am currently...
  22. A control doesn't send a message, code sends a...

    A control doesn't send a message, code sends a message. If you have a look at the SendMessage function, you'll note that there is no from argument.
  23. Replies
    2
    Views
    1,799

    GetStockObject to get an HFONT. GetObject to get...

    GetStockObject to get an HFONT.
    GetObject to get a LOGFONT from the HFONT.
    Change the underline setting
    Create a new font using CreateFontIndirect.
  24. 1. Get the process id for your target process....

    1. Get the process id for your target process.
    This can be done by enumerating through all the processes on the system with Process32First.

    2. Enumerate all the top level windows.
    This can be...
  25. Replies
    6
    Views
    2,844

    If you call InternetOpen with...

    If you call InternetOpen with INTERNET_OPEN_TYPE_PRECONFIG, WinINet will use these values, as explained in 'setting access types'.

    You can set the proxy username and password using...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4