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...
Type: Posts; User: chorus
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...
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...
binary trees are like apple trees. But they have binaries on them instead of apples
--Chorus
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...
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.
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...
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...
hehe... didn't log in ;)
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++...
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...
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...
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,...
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...
You have a spelling error in resource.h
#define IF_FILE_EXIT 9001
should be
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...
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++...