Search:

Type: Posts; User: chorus

Search: Search took 0.00 seconds.

  1. Replies
    5
    Views
    4,826

    Internet Explorer implements OLE Drag and Drop to...

    Internet Explorer implements OLE Drag and Drop to handle the dragging of hyperlinks.
    You must do the following (look into the APIs especially on MSDN)

    1) OleInitialize
    2) use...
  2. Thread: winsock experts

    by chorus
    Replies
    1
    Views
    1,379

    winsock experts

    I'm hoping somebody can help me with my winsock program.

    I'm trying to get WriteFileEx to work with overlapped I/O on a socket. The trouble is, you can't specify a port or destination address with...
  3. Thread: Problems

    by chorus
    Replies
    18
    Views
    1,821

    binary trees are like apple trees. But they have...

    binary trees are like apple trees. But they have binaries on them instead of apples

    --Chorus
  4. Thread: Problems

    by chorus
    Replies
    18
    Views
    1,821

    pointers and references are the C++ equivalents...

    pointers and references are the C++ equivalents of the cpu's direct and indirect addressing.

    a reference is the hard-coded position of the data in memory. This will either be relative to the stack...
  5. Replies
    7
    Views
    1,437

    hacker = good coder True. cracker = small...

    hacker = good coder

    True.

    cracker = small crispy biscuit

    Also true.

    There are many different ways to define many different words, and for most of the world, hacker = cracker.
  6. Thread: Random!!!

    by chorus
    Replies
    6
    Views
    1,123

    beg_g, I believe you must take the modulus as...

    beg_g, I believe you must take the modulus as (max-min+1) to get the number in range. Otherwise you could have numbers outside the range.

    Ex.

    min = 98; max = 100; rand is 44
    ->rand % max = 44...
  7. Replies
    6
    Views
    3,060

    WM_MOUSEMOVE is only sent to windows when the...

    WM_MOUSEMOVE is only sent to windows when the mouse is over it. Hence, when the mouse leaves the button window, you will not get this message.

    One option I often use is to design a button as a...
  8. Replies
    32
    Views
    3,443

    hehe... didn't log in ;)

    hehe... didn't log in ;)
  9. Replies
    6
    Views
    11,926

    Since your original post was about Owner Drawn...

    Since your original post was about Owner Drawn Menus, here's some code regarding such to get you going. Sorry if it isn't the cleanest... just started C++ a couple of days ago... built it from DevC++...
  10. Do you call your ShowWindow wrapper alot? Or do...

    Do you call your ShowWindow wrapper alot? Or do you only call it right after window creation? If that's the case, then you can save yourself the ShowWindow/UpdateWindow call by Creating the window...
  11. Replies
    6
    Views
    3,060

    You can trap WM_MOUSEMOVE, but you can get buggy...

    You can trap WM_MOUSEMOVE, but you can get buggy behavior if you fail to catch when the mouse *leaves* the button. To catch this, you'll need to install a timer that checks if the mouse is still...
  12. Replies
    5
    Views
    1,375

    Just taking a peek here...thought I'd make a...

    Just taking a peek here...thought I'd make a quick comment. I would avoid using PeekMessage for the following two reasons:
    1) If there isn't a message in the queue, you're calling TranslateMessage,...
  13. Replies
    6
    Views
    11,926

    Don't like that solution? Here's another one,...

    Don't like that solution? Here's another one, although far more involved and invites many bugs.

    --Create 2 custom controls one for the menu bar and one for the popup menus.
    --In each, handle all...
  14. Replies
    5
    Views
    1,083

    You have a spelling error in resource.h ...

    You have a spelling error in resource.h



    #define IF_FILE_EXIT 9001


    should be
  15. Replies
    6
    Views
    11,926

    Don't know of any tutorials offhand, sorry. The...

    Don't know of any tutorials offhand, sorry. The basic idea however is this:

    --Load or create your menu
    --Set up a MENUITEMINFO structure so fMask = MIIM_TYPE, fType = MFT_OWNERDRAW and...
  16. Thread: Bloat

    by chorus
    Replies
    1
    Views
    1,001

    Bloat

    Hey everybody,
    I'm new to this board, but I'm getting into Windows C++ programming and I have a couple questions. First off, I usually do all my windows programming in assembly language. But C++...
Results 1 to 16 of 16