|
I am having some problems figuring out how to programmitcally group buttons with a toolbar control.
If you want the following:
+-----------------------------------------------+
| btn1 | btn2 | btn3 | | btn4 | btn5 | | btn6 |
+-----------------------------------------------+
\______ _______/ \___ ____/ \_ _/
\/ \/ \/
group 1 group 2 group 3
How do you indicate which group a button is in?
What breaks the group? The separator (ie using the TBSTYLE_SEP) ?
¡El diablo está en mis pantalones! ¡Mire, mire!
Real Mentats use only 100% pure, unfooled around with Sapho Juice(tm)!
SELECT * FROM User WHERE Clue > 0
0 rows returned
|
|
|
|
|
Hi please look at this.
ID_SEPARATOR,
ID_INDICATOR_CAPS,
ID_SEPARATOR,
ID_INDICATOR_NUM,
ID_SEPARATOR,
ID_INDICATOR_SCRL,
Best Wishes and Happy Turkey Day,
ez_way
|
|
|
|
|
How can I resize an image to half of its size using CxImage? I am having problem findingt the function.
Elizabeth
|
|
|
|
|
Why don't you post to the CxImage forum instead of here?
BTW, the function is Resample().
|
|
|
|
|
I do not see CxImage forum in CodeProject. Can you tell me the website?
Elizabeth
|
|
|
|
|
|
I got it. Thank you.
Elizabeth
|
|
|
|
|
Hello,
Has anyone tried to create custom scrollbars for the ActiveX WebBrowser control? I've managed to disable the default scrollbars using the IDocHostHandler Interface but I'm having a little trouble drawing on the custom ones.
I've found some articles that describe custom scrollbars in listboxes and other controls, but nothing for ActiveX (IDispatch) controls.
I know that you can change the colors through HTML, but there doesn't appear to be a way to use bitmaps in this fashion.
Any help will be greatly appreciated.
Cheers,
Don
|
|
|
|
|
I am writing a plugin for winamp 2.xx.
I want to register some Timer for its window.
But how can prohibit to do not conflict by existing its timer ID?
thanks.
|
|
|
|
|
Hi
Search for an old pgm. called Eureka (1998) I think.
It deals with some of these issues.
Best Wishes and Happy Turkey Day,
ez_way
|
|
|
|
|
If you own the window the only timers you can confilct with is your own, I think. A handy trick I use with timers is to use existing IDs for timer IDs, that is I associate the timer ID with wath it is related to.
Example: SetTimer(hWnd, ID_MYCLOCK_CONTROL, NULL);
Note: I have yet to see SetTimer() return any ID other than the one that was passed to it, but may be you sould verify the returned value.
INTP
|
|
|
|
|
Note: I have yet to see SetTimer() return any ID other than the one that was passed to it, but may be you sould verify the returned value.
Try passing NULL as ID...
"...Ability to type is not enough to become a Programmer. Unless you type in VB. But then again you have to type really fast..."
Me
|
|
|
|
|
If you are subclassing window that already has some timers set: I doubt there is a way to find out what ID's has been used, except by overloading and processing WM_TIMER messages, but of course it could be too late and not reliable...
Good question to ask MSFT!
"...Ability to type is not enough to become a Programmer. Unless you type in VB. But then again you have to type really fast..."
Me
|
|
|
|
|
I know we can do it in DLL.
I have a Static Lib project that develop some class that
they base are MFC classes. I will use this lib in a win32 application.
Some of this class need some resource for example for property page.
If my main program be MFC Base we can it by MFC extention Dll.
|
|
|
|
|
I am not sure but I would think so, since the option of staticaly linking is available. If not, just create a DLL and staticaly link it.
INTP
|
|
|
|
|
No, you can't. The LINK tool can only cope with a single RES file specified on the command line - it cannot combine RES files.
What I've done in this situation is to #include the .rc file accompanying the static library in the main executable/DLL's resource file. See View > Resource Includes in the VC 6 IDE.
|
|
|
|
|
I only need to use a command prompt for my program and want to call a couple of WMI methods.
All the examples I see on the web use MFC and Windows Forms for showing how to use WMI.
A simple example would be to just call
Win32_WindowsProductActivation.SetProductKey( myKey );
and then close the app.
I just need a start on what I need to include and do to setup a simple call without using forms.
I am not that familiar with MFC Forms, only .Net Forms, but I do not want to have to install the .Net framework so I thought i would just write this in C++. Also, do not want to use VB Script.
Well, hopefully this is easy for someone to whip up an example for me.
Much appreciated.
Thanks.
|
|
|
|
|
I write this 3D editor at
http://marius.homeunix.org:8000
I've moved the compilation process in a thread. ()
The thread has to update the progress bar of the Dialog-Bar
and the text in the static and report list box.
I'm sending WM_* messages to these windows.
Under Win2K work 100% OK but in Win 98 it hangs
in the SendMessage (dead lock). Any Ideeas
Thanks.
|
|
|
|
|
Did you try using PostMessage?...
"...Ability to type is not enough to become a Programmer. Unless you type in VB. But then again you have to type really fast..."
Me
|
|
|
|
|
I have to send text to the static control
TCHAR someOutString;
_stprntf(someOutString,"Preogress is :%d%%",_percentage);
dlgbar.m_static.SendMessage(WM_SETTEXT,0,(LPCTSTR)someOutString);
If I do PostMessage I loose the LPARAM ... 'someOutString'.
I have installed VC 6 under 98 and I I get hang in user.dll
Thx
|
|
|
|
|
>> I have to send text to the static control <<
So what? You may have different options, e.g:
1. Put your TCHAR someOutString as global variable acessed by both threads;
2. Allocate yours someOutString on sending thread and free on receiving...
>> I get hang in user.dll <<
The reason for hang could be limited message queue on Win98...
Regards
"...Ability to type is not enough to become a Programmer. Unless you type in VB. But then again you have to type really fast..."
Me
|
|
|
|
|
Opps... It works.
I did it and It works fine. Thank you. Anyway I have overmessage there
Now I SendMessage() 1-3/sec. and is OK.
{
static int modul = 0;
if(modul++%64 == 0)
{
UpdateProgressBars()
}
}
Thanks. Igor.
|
|
|
|
|
>> Anyway I have overmessage there <<
OK, that confirms that the reason for a deadlock is limited queue on Win98.
Hope 3 seconds is fine, but it's still not be 100% bullet prooof. I don't see any solution other then PostMessage. With PostMessage also you can check on your sending thread that only one WM_SETTEXT is travelling and Post only if nothing is in queue.
For example if your string is global and sending thread sets it and receiving empties it --> you will only PostMessage if that global string is empty...
Regards
"...Ability to type is not enough to become a Programmer. Unless you type in VB. But then again you have to type really fast..."
Me
|
|
|
|
|
Hi,
How do I use threads in VC++?Please suggest a reference or sample program(s).
Karteek
|
|
|
|
|
Try these:
http://flounder.com/uithreads.htm
http://flounder.com/workerthreads.htm
Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?
|
|
|
|