Search:

Type: Posts; User: kristoffer

Search: Search took 0.00 seconds.

  1. Replies
    14
    Views
    3,262

    So this means I can use it then... :rolleyes: ...

    So this means I can use it then... :rolleyes:

    Anyway, thanks for the help :)
  2. Replies
    14
    Views
    3,262

    MSDN Says that i can NOT use any reserved device...

    MSDN Says that i can NOT use any reserved device names as a filename, e.g. COM3 (then one I will be programming on)...
    I don't know if i understand this completely. :D
  3. Replies
    14
    Views
    3,262

    Serial port programming

    I want to learn how to send and receive data using the serial (com) port on my computer, but i don't know of any tutorials or anything, so if any of you know where to find tutorials or anything about...
  4. Replies
    5
    Views
    2,755

    I have made a function to center windows...

    I have made a function to center windows (#include <windows.h>):


    void CenterWindow(HWND hwnd)
    {
    RECT rc;
    int W;
    int H;
    GetWindowRect(hwnd, &rc);
    W = rc.right - rc.left;
  5. Thread: TabStop

    by kristoffer
    Replies
    2
    Views
    1,163

    Thanks

    I managed to fix it after looking at that page,
    but their example was totally screwed up.
    Thanks, anyway!
  6. Replies
    2
    Views
    8,411

    Do it this way: LRESULT CALLBACK...

    Do it this way:


    LRESULT CALLBACK InputProc(HWND, UINT, WPARAM, LPARAM);
    DialogBox(hInstance, dialog_name, parent, (DLGPROC) InputProc);

    That should work :-)
  7. Thread: TabStop

    by kristoffer
    Replies
    2
    Views
    1,163

    TabStop

    I have tried to make a window using CreateWindowEx.
    The children of this window is created like this:


    CreateWindow("button", "Close", WS_CHILD | WS_VISIBLE | BS_PUSHBUTTON | WS_TABSTOP,
    ...
  8. Replies
    6
    Views
    7,815

    This should work: while(true) { HDC...

    This should work:


    while(true)
    {
    HDC DeskDC;
    RECT rc;
    rc.left = 0;
    rc.top = 0;
    rc.right = GetSystemMetrics(SM_CXSCREEN);
Results 1 to 8 of 9