Search:

Type: Posts; User: poccil

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    929

    Related:...

    Related:
    http://cboard.cprogramming.com/showthread.php?s=&threadid=42738&highlight=edit+box
  2. Replies
    12
    Views
    3,537

    Bitmap objects (with HBITMAP handles) are...

    Bitmap objects (with HBITMAP handles) are device-dependent in that its data can vary with the display device, such as the image's layout. Lately, the information in the bitmap object is highly...
  3. Replies
    6
    Views
    3,584

    If you need to use PeekMessage, place a...

    If you need to use PeekMessage, place a WaitMessage prior to the PeekMessage call.
  4. Thread: removing link.

    by poccil
    Replies
    9
    Views
    1,268

    Well, copying bytes of memory is what the linked...

    Well, copying bytes of memory is what the linked list is intended to avoid.
  5. Replies
    4
    Views
    1,033

    Syntactically speaking, those statements can...

    Syntactically speaking, those statements can exist.
    Theoretically speaking, they can exist.
    Practically speaking, it's questionable.
  6. Replies
    1
    Views
    1,529

    It is better, in this case, to save the resource...

    It is better, in this case, to save the resource to a temporary file (use SizeofResource to get the resource's size) and load it from there.
  7. Thread: static

    by poccil
    Replies
    3
    Views
    1,104

    Generally, only functions that will not be placed...

    Generally, only functions that will not be placed in a header file should be declared static.

    In fact, when creating reusable program modules, you should declare all variables in the module as...
  8. Replies
    8
    Views
    72,718

    A char is inherently a binary value, as are all...

    A char is inherently a binary value, as are all variables.



    printf("%c%c%c%c%c%c%c%c",
    (ch&0x80)?"1":"0",
    (ch&0x40)?"1":"0",
    (ch&0x20)?"1":"0",
    (ch&0x10)?"1":"0",
    ...
  9. Thread: Window Status

    by poccil
    Replies
    3
    Views
    1,196

    Is there anything else that you mean by 'status'?

    Is there anything else that you mean by 'status'?
  10. Replies
    4
    Views
    1,224

    Be aware that it's only a programming convention.

    Be aware that it's only a programming convention.
  11. Replies
    12
    Views
    2,081

    That's true. Perhaps the best solution is to...

    That's true. Perhaps the best solution is to dynamically link to shfolder.dll, or check the registry if the file doesn't exist.
  12. Replies
    12
    Views
    2,081

    Here's code that may be relevant: } BOOL...

    Here's code that may be relevant:



    }
    BOOL GetShellFolderPath(char * pShellFolder, char * pShellPath) {
    // pShellFolder can be one of the following
    // AppData, Cache, Cookies, Desktop,...
  13. Replies
    5
    Views
    1,165

    The Win32 scheduler assigns each program a tiny...

    The Win32 scheduler assigns each program a tiny slice (usually a few milliseconds) of processor time. Busier programs, of course, are expected to use more processor time. The schedular does this so...
  14. Replies
    5
    Views
    1,836

    The heap is a block of storage that a program can...

    The heap is a block of storage that a program can allocate and deallocate when needed.

    The system stack is a storage location for variables and function calls. Information is pushed on the stack...
  15. Replies
    3
    Views
    2,856

    It should work with any window, including...

    It should work with any window, including toolbars. The second parameter, which is a DWORD pointer, receives the window's process ID. The return value is the window's thread ID.

    You should have...
  16. Replies
    12
    Views
    2,081

    Windows defines a directory for user application...

    Windows defines a directory for user application data, whose path you can look for in the registry. The Temp folder is intended for files that will be created, used, and then deleted afterwards.
  17. Thread: Wm_ncpaint

    by poccil
    Replies
    4
    Views
    2,717

    I would assume that the WM_NCACTIVATE message is...

    I would assume that the WM_NCACTIVATE message is also being sent.
  18. Replies
    1
    Views
    5,416

    This is an EnumFiles function I created some time...

    This is an EnumFiles function I created some time ago. It's a non-recursive function. If you look hard enough at the code, you can figure out the rest of the problem: how to add the files to the...
  19. Replies
    8
    Views
    2,239

    All intermediate file access mechanisms...

    All intermediate file access mechanisms implemented in Win32, whether it be OpenFile, fopen, fstream, Win16 _lopen, etc., all ultimately call CreateFile. The following functions cover much of the...
  20. Replies
    2
    Views
    1,048

    char* represents a pointer to char, which is a...

    char* represents a pointer to char, which is a data type that's usually one byte long. This pointer, unless it's allocated or explicitly set, points to memory that's undefined.

    char contains...
  21. Replies
    2
    Views
    1,496

    Which process? Your process? Some other...

    Which process? Your process? Some other process? Keep in mind that it is extremely unlikely for an application to use up all of its 2GB memory space (which I assume you mean by "all of the process...
  22. Thread: stupid cursor

    by poccil
    Replies
    2
    Views
    1,077

    Mouse cursors aren't intended to blink. The...

    Mouse cursors aren't intended to blink. The system caret and the console cursor are, though. Call the SetCaretBlinkTime function to change the blink time of the system caret. Though there is no...
  23. Replies
    16
    Views
    14,023

    Same:...

    Same:
    http://cboard.cprogramming.com/showthread.php?s=&threadid=40759
  24. Replies
    3
    Views
    2,575

    LOGBRUSH lb;...

    LOGBRUSH lb;
    GetObject(hbrush,sizeof(LOGBRUSH),&lb);


    Please note that the actual color drawn may be inexact, depending on the color settings.
  25. Replies
    2
    Views
    1,387

    Windows "executable" files come in two formats: ...

    Windows "executable" files come in two formats: the New Executable (NE) format for 16-bit programs, and the Portable Executable (PE) format for 32-bit programs. Both formats are well-known and...
Results 1 to 25 of 76
Page 1 of 4 1 2 3 4