My understanding is as follows:
When a window needs painting, the procedure calls WM_PAINT. If there is no handler for this message, the message is passed to DefWindowProc which takes care of the...
Type: Posts; User: eth0
My understanding is as follows:
When a window needs painting, the procedure calls WM_PAINT. If there is no handler for this message, the message is passed to DefWindowProc which takes care of the...
Makes sense. Thanks for the tip :)
Do you mean selected via the default open dialog?
If so, you want to look at the GetOpenFileName function.
The path is pointed to by lpstrFile in the OPENFILENAME struct
I'm destroying the old standard imagelist which is returned from from sending TB_SETIMAGELIST. The new image list isn't touched.
This is the way I've always applied image lists to toolbars.
...
Hi all.
I'm attempting to place tool buttons into a Window which is going to be a floating toolbar.
The images are seperate bitmaps loaded into an image list.
I put the following code...
In exactly the same way as you build c++ files. Just save your files as .c instead of .cpp
The MSVC compiler (cl.exe), is both a C and C++ compiler. It will build according to file extension.
...
I'll do it for $9.50
http://cboard.cprogramming.com/showthread.php?t=41926
I would recommend Winsock Programmers FAQ
They aren't really error warning, they are more notification warnings.
Microsofts string-safe library is actually really good and certainly worth using if you plan on using VS exclusively to build....
No this is not true. The MSVC compiler supports both C and C++.
It is the best C compiler available for Windows systems able to produce efficient binaries is blistering time.
That's not true....
Code::Blocks is about to blow Dev-Cpp out of the water....
You need to grab a nightly build at the moment, but the next official release will push them clear.
I think Code::Blocks has left Dev-C++ in it's tracks. It's starting to look and behave like VS now.
However you'll need to get one of the nightly builds, the release version on their website is very...
You do realise you can be banned for such blasphemy ;)
christianne, how about simplifiying the code a little bit.
Here is the same program, using char's to store the input instead of int's....
Thanks for the clarification, all is working now :)
Hi all.
I’ve been reading Petzold about DIB’s and been playing about with some ideas. One problem I’m having trouble with at the moment is drawing on the same bitmap where an image has been...
yeah, I had been googling.
I had been looking for ways of packaging the current API reference (i.e. 2003 R2).
I think the one you provided is from around the 1995 area.
There must be some way...
Does anyone know of a way of seperating the SDK help files for viewing?
My aim is to get a copy of Code::Blocks and the Win32 API reference material onto a pen drive.
I move around computers...
I've got a floating toolbar 32 x 128 and I want to get a collection of custom buttons onto it in a 2 x 8 arrangement.
How do I go about this?
Thanks.
I'm not really sure where I'm going wrong here.
I'll post my relevant code sections on here in the hope that someone can point me in the right direction.
I'll use standard buttons to make it...
If I create a regular window ready to be a floating toolbar using WS_EX_TOOLWINDOW, how do I then get toolbar buttons onto it?
I'm using C and the Win32 API.
Thanks
Great link. Thanks for that. :)
Use a shared memory resource.
Don't forget to access them via protected methods. e.g. InterlockedXxx in Windows.
Hi.
Could someone point me to some docs on how to make a toolbar floating / dockable?
Searching MSDN only seem to pull up info for MFC, and I'm using Win32 API.
At the moment, my toolbars...
how do you get a handle to a modal dialog from outside of the dialogs procedure?
I need to be able to send messages to it.
Thanks.
Nope, I got my answer and learned something else too. :)
Thanks guys