|
Iam using CToolBar class.
Here is the code.
if (!m_pToolBar->CreateEx(this, WS_EX_RIGHT|TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP | CBRS_TOOLTIPS | CBRS_FLYBY CBRS_SIZE_FIXED | CBRS_ALIGN_RIGHT, CRect(0, 0, 0, 0), IDR_TOOLBAR_TAGCOLUMNS/*, CIDs::GetID()*/) ||
!m_pToolBar->LoadToolBar(IDR_TOOLBAR_TAGCOLUMNS))
{
return FALSE;
}
This is creating a horizontal toolbar.
Can anybody help me how to create a vertical toolbar?
|
|
|
|
|
Hi,
In the CreateEx(...) use CBRS_LEFT or CBRS_RIGHT instead of CBRS_TOP.
Your Toolbar will be vertical...
The price of anything is the amount of life you exchange for it.
Thanks and Regards.
SANTHOSH V
|
|
|
|
|
Hi SANTHOSH,
Thanks for ur reply.
I tried with the styles u specified.
but still the buttons in the toolbar are aligned horizontally,
I want it to display vertically.
What do I need to do for that?
Thanks,
Neela
|
|
|
|
|
Hi,
You better use this code..
if (!m_wndToolBar.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP | CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC) || !m_wndToolBar.LoadToolBar(IDR_MAINFRAME))
The price of anything is the amount of life you exchange for it.
Thanks and Regards.
SANTHOSH V
|
|
|
|
|
Hi,
I've used this code and after changing CBRS_TOP to CBRS_LEFT,
it works fine.
Thanks a lot!!!
Regards,
Neela.
|
|
|
|
|
Hello,
Could you please tell me if you know of any other way of receiving global mouse and keyboard input except for SetWindowsHookEx within a dll? I am working on an macro recording application and I want to be able to record all keyboard actions and all mouse clicks and movements and then play them as recorded.
I cannot use SetWindowsHookEx with WH_JOURNALRECORD and WH_JOURNALPLAYBACK because they do not work well in Vista. WH_JOURNALRECORD need uiAccess set to true in manifest which involves having a signed certificate.
I saw macro recorders on the internet that set a global hook somehow and catch all mouse and keyboard events without even requiring Admin rights from UAC or using dlls.
How can I read the raw input from mouse and keyboard (from user mode)?
Found an application (Axife Mouse Recorder) that does this.
Please help. Thank you.
www.nkprods.com
|
|
|
|
|
Have you seen this[^]
Regards,
Rane
|
|
|
|
|
Hello everyone,
I am wondering how ProgIDtoCLSID is implemented internally? My idea is it just look through registry and find matched ProgID string name, then return the matched ProgID item's sub CLSID key of the matched ProgID item.
Not sure whether it is actually implemented in this way?
thanks in advance,
George
|
|
|
|
|
I guess you're right.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Thanks CPallini,
Your confirmation makes me confident.
regards,
George
|
|
|
|
|
Please notice My question is : How to make the window ALWAYS topmost?
I make a window, and set it fullscreen, and use ::SetWindowPos to set it topmost style window.
But accident happens.
1、when a balloon tooltip shows(like the xp autoupdate prompt that you've downloaded all the updates, you can install it or firewall prompt), the balloon tooltip then runs before my topmost window.
2、When I insert a usb flash disk, because my xp allows autorun, then the autorun window also comes before my topmost window.
So is it possible, when the situations above happens, I can still make my window topmost(don't let any prompt comes before my window)?
Please give me some hints!
|
|
|
|
|
|
Thanks first. I will finger out whether it is what i needed.
|
|
|
|
|
You can't, short of doing something like using DirectX in exclusive mode. There's nothing from stopping another program from making its window topmost after you make yours topmost.
|
|
|
|
|
Hi,
I am new to this forum.
I am doing project in vc++.
I want to include Outside in PDF export technology by Oracle corp.
It's a beautiful technology which takes a file and convert into PDF format.
But i want to use my own buffer(data) and make that into PDf using that library.
Can anybody advise abt this.
Thanks in advance.
|
|
|
|
|
hi all
when i compile my project i got the error "fatal error C1076: compiler limit : internal heap limit reached; use /Zm to specify a higher limit"
how can i resolved this error
thank u in advance
|
|
|
|
|
See here [^].
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
I am using vc++6 and i could not find the option specify in that link please help me to resolve this problem
|
|
|
|
|
*Go to Solution Explorer or Class View.
*Right Click on the Project.
*Click on Properties
*Open C/C++ folder.
*Click on the Command Line property page.
*Type the compiler option in the Additional Options box.
Regards,
Rane
|
|
|
|
|
I do not believe these will work with VS6.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
|
Actually there are a lot of suggestions in that page...
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Click Alt+F7 to open the Project Settings dialog. Click the C/C++ tab. Add /Zm to the Project Options edit box.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
On a side note: I never reached the internal limit of the compiler. How did you manage to reach it ? Do you have all your code in one big file or what ?
|
|
|
|
|
Some complex template-fu can cause this in 6.0, although I am hardpressed for an example right now...
Also, some template expressions cause that error and no number you pass to the command line option helps.
Peace!
-=- James Please rate this message - let me know if I helped or not!<hr></hr> If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! See DeleteFXPFiles
|
|
|
|