|
transparent overlays in client areas
hi, a quick, but perhaps not so simple question.
I want a bunch of transparent overlays in the client areas. Perhaps the easiest way would be to create a bunch of transparent modeless dialogs? is this right?
And how can i make my modeless dialog be able to "snap" to certain part of the screen - u know, like toolbars?
btw, i want the transparent overlays (modeless dialogs) to be able to be dockable AND with NO titlebar (or if... a very small title bar) AND be able to move around by user?
thanks.
norm
|
|
|
|
|
I *think* CCommandBar is the class which does this in MFC. Basically it creates a docking window to insert the toolbar into when it docks, otherwise it floats as a child of the main window. I think that may be the smartest way, if you just handle WM_MOVE and move your children, they will inevitably lag behind when being moved quickly and look awful. The full MFC source is on your hard drive
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
i dont recall i've seen this class. but will check up on it.
but lag and flicker is unacceptable. no. every GUI is a piece of art. i came from an engineering background. and i'm real F***ING SICKKK of the utilitarian mentality (just because you are an engineer that doesnt mean that your website and your clothes and your creation and your everything around u has got to be disgusting! just because your production facility has to be efficient, it doesnt mean that it has to be digusting!)
well, i guess most engineer lack this artistic... whatever u call it.
sorry for the bitc*ING, cant help it.
|
|
|
|
|
Also, how can I make the scrolling tab method actually show the scrolling tab? If I could do that, that would answer all my other questions.
|
|
|
|
|
I am still stuck. I have a property sheet with 20+ property pages. It just cuts of the 16th property page (and doesn't display or even let me access any page past the 16th). I added:
int CMyPropertySheet::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
// Set for Scrolling Tabs style
EnableStackedTabs(TRUE);
// Call the base class
if (CPropertySheet::OnCreate(lpCreateStruct) == -1)
return -1;
return 0;
}
But it looks funny initially. The rows are stacked, but the top row looks cut off. Once I click on a page, then the rows look stacked.
If the rows are stacked, how can I make it select the first page so that one row doesn't cut off another row?
Is it possible to make 10 pages the first row and 10 pages the second row? Currently, it just goes to 16 for the first row and then the next 4 rows are really long tabs?
Please, please, please, any response any one can give me will be greatly appreciated.
Sincerely,
Danielle (an overworked graduate student)
|
|
|
|
|
It's better to use a tree control to organize option dialogs instead of tabs if you have so many pages - like this[^].
Pavel
Sonork 100.15206
|
|
|
|
|
|
I feel kinda dumb asking this question...
How can I display a bitmap onto a dialog from a file not a resource. All the examples I've been able to find require handles for API. Thanks
-Ken Mazaika
|
|
|
|
|
::LoadImage
Or if it's not a bmp, use CXImage, GDI+, Paintlib, FreeImage, or something like that.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
For ::LoadImage what could I put for the HINSTANCE? Thanks
-Ken Mazaika
|
|
|
|
|
I don't recall if NULL will work, if not, in an MFC app there is AfxGetInstance ( or something like that ), in a Win32 app you will have created it, and probably stored it in a global called hInst or something like that.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
Thanks, got it to work.
-Ken Mazaika
|
|
|
|
|
Glad to help. I'd recommend looking into CXImage or similar though, unless you need to use .bmp files. jpgs are so much smaller.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
|
I have an IP address control on a dialog in my application that works with XP but with Windows 98 the dialog fails to pop up. When I substitute an edit control for the IP control it's ok. Is there something I should include with my program to work on Windows 98? What is the best approach for this problem? P.S. Is it the same situation with all common controls?
|
|
|
|
|
In your app's startup code, call InitCommonControls() or InitCommonControlsEx() . And that is required if you use any of the controls introduced with Win 95 or later (list, tree, calendar, etc.)
--Mike--
"alyson hannigan is so cute it's crazy" -- Googlism
Just released - 1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click!
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
Thanks, can you also please tell the include file and lib file I should link to.
|
|
|
|
|
RTFM
See the docs on those APIs, every API is listed with its header and import lib.
--Mike--
"alyson hannigan is so cute it's crazy" -- Googlism
Just released - 1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click!
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
Hi.
I would like to port a C++ .NET project to C++ .60 so other developers may open it using C++ 6.0. I am working a team project and some of our members do not have C++ .NET.
Thanks,
Kuphryn
|
|
|
|
|
Just ship the .cpp and .h files and then they have to create a new project to compile the code and run it. I don't think Microsoft would make such function that could "downcreate" VC.NET projects to VC6 projects!
Or have they?
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
Rickard Andersson wrote:
Just ship the .cpp and .h files and then they have to create a new project to compile the code and run it. I don't think Microsoft would make such function that could "downcreate" VC.NET projects to VC6 projects!
Yes, but a stupid moron spent time on this and published a useful tool for everyone.
|
|
|
|
|
.S.Rod. wrote:
but a stupid moron spent time on this and published a useful tool for everyone.
I didn't liked your attitude!
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
|
.S.Rod. wrote:
Yes, but a stupid moron spent time on this and published a useful tool for everyone.
And it works very well. Saved me a couple of headaches in recent weeks when I found that a third party library wouldn't link with VC.NET and I had to go back to using VC6.
Michael
Life’s not a song.
Life isn’t bliss.
Life is just this.
It’s living. -- Buffy the Vampire Slayer: Once more, with feeling
|
|
|
|
|
Hi!
I think there is an project file converter 7.0 --> 6.0 done by S.Rod. here on codeproject.
Haven't tested it though...
Cheers
Martin
"Situation normal - all fu***d up"
Illuminatus!
|
|
|
|