|
Hello!
I want my desktop to be clean (without shortcuts), but I want fast access to programs too.
So I want to make a program that behave like a Windows toolbar (with autohide):
when I point the mouse to the top-left corner of the screen I want my toolbar to appear.
I know that with Windows XP I can make a custom autohide toolbar (with what ever I want, where ever I want),
but I want some some menus entry (like: games, apps...), transparency, sounds and others.
I think this will eat some memory (with all that transparency and sounds), so here's my idea:
I will write a simple MFC program, that run in the background, without any controls and place it on top-left corner of the screen.
When the mouse (OnMouseMove) is over the window (which is a little square) it will call the actual program (ShellExecute).
This little "call program" eat around 2,700k.
* Is there a way to optimize this program to consume less memory?
* Is there another way to make what I want with less memory?
(some Windows shell programming, but this is some advanced stuff and I'm a beginner).
Here's some others questions not related with above (I hope you don't mind that I will post them here):
1. I found on the web some classes derived from the CBitmapButton and from all of them I get an error like this:
error LNK2001: unresolved external symbol "public: __thiscall MCBitmapButton::MCBitmapButton(void)" (??0MCBitmapButton@@QAE@XZ)
where MCBitmapButton is the derived class. What is the problem?
2. How can I make the background of MFC window dialog 50% transparent, without making the controls (like buttons) transparent.
If I use SetLayeredWindowAttributes: with LWA_COLORKEY the buttons are opaque, but the background is completly tranparent.
with LWA_ALPHA the buttons and the background share the same level of transparency.
3. Is there a way to make a MFC window dialog to have gradient-transparency: from opaque to completly transparent?
|
|
|
|
|
I'm new member please help me.
i need code in Visual c++ using while loop and allow one enter number between 1 and 100 and error trap if some one goes between the boundaries but stays in the loop until the correct number is inputed my email is jbusienei0235@stud.unva.edu
|
|
|
|
|
|
We don't do people's homework. What you're asking for is trivial, and working it out will teach you valuable lessons in doing your own research. Of course, if you've tried and you're genuinely stuck, we'd love to help, just post your code and explain what's not working for you.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Joseph_B wrote: i need code in Visual c++ using while loop and allow one enter number between 1 and 100 and error trap if some one goes between the boundaries but stays in the loop until the correct number is inputed
Oh No, Another request by someone to do his homework.
Regards,
Vijay.
God may not give us what we 'want', but he surely gives us what we 'need'.
|
|
|
|
|
There are two types of questions that do not get answered here: Homework and those that are too difficult.
Guess which one you are asking.
INTP
"Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra
|
|
|
|
|
John R. Shaw wrote: do not get answered here: Homework
I agree.
John R. Shaw wrote: too difficult.
But where we can get my answers?
|
|
|
|
|
WhiteSky wrote: But where we can get my answers?
Your own head usually (research),
I rarely ask a question and when I do, I rarely get an answer; because I do not ask it unless my research is giving none. But I continue researching to find the answer while I wait for some one to answer my question.
INTP
"Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra
|
|
|
|
|
|
Arris7 wrote: Could you please tell me how to create a CImageList for 4 Bitmaps...
Use the Add() method.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Arris7 wrote: All my bitmaps parameters are the same except their height
Images in an image list need to be the same size...
Mark
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
Why delete your question?
|
|
|
|
|
Hi all,
I am making one pure win32 windows application by selecting “Win32 Project” template in Visual C++ project type 2005 version. This is my first win32 application but I can’t understand how can I add more controls and use it in the main form created by CreateWindow() function. Or can I get some help or place where I can get tutorial about win32 applications.
Thanks in advance,
Priyank
|
|
|
|
|
Programming Windows 5th Edition by Charles Petzold is THE book on Win32.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I actually rated you too my surprise, good answer. I do not know what he is looking for exactly, but Win32 implies they want to know.
INTP
"Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra
|
|
|
|
|
I need a visual c++ code which gets two arguments(year and month)from user and display corresponding calendar
program must use arrays and functions and define a class date.
|
|
|
|
|
So which part do you need help with: 1) visual c++ code which gets two arguments(year and month)from user, or 2) display corresponding calendar?
If you are using MFC, check out the CMonthCalCtrl class. Otherwise, create a SysMonthCal32 window class.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Dear David,
thanks a lot for your reply, i need both part that you have asked kindly you can provide me a full flage sample code for this kind of calendar.
Actually it is not GUI it should be simple rows colum table calender through arrays and function and uses a class date.thank you once again
|
|
|
|
|
How can I turn off sounds in webbrowser control hosted in my application?
I mean sound when user or script clicks some link.
It seems it is turned on default in Windows Vista.
Thank you!
rrrado
|
|
|
|
|
Hello,
Scenario: MFC dialog application. That contains a lot of regular controls but should also contain a hidden(invisible) button or checkbox. clicking on the button (or checkbox) will enable or disable some custom or expert capabilities. Only knowing the exact location of the button will allow the user to click and get the expert capabilities.
The invisible control should behave as a regular visible control.
I know that this is possible, due that I saw it on a demo application few years ago (That I don't remember its name), but I don't have the vague idea on how to code it.
Any idea on how to implement it with Visual C++ using MFC?
Thanks in advance.
-- Ricky Marek (AKA: rbid)
-- "Things are only impossible until they are not" --- Jean-Luc Picard
My articles
|
|
|
|
|
If it's an option, it seems to me it's easier to just intercept WM_LBUTTONDOWN notification
messages and check for the cursor being in a certain region. A simple flag to toggle can keep the
expert/novice state.
Mark
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
Mark Salsbery wrote: ForumVisual C++ / MFC
Subject:Re: Need to make a button (or checkbox) invisible..
Sender:Mark Salsbery
Date:13:47 16 May '07
If it's an option, it seems to me it's easier to just intercept WM_LBUTTONDOWN notification
messages and check for the cursor being in a certain region. A simple flag to toggle can keep the
expert/novice state.
Mark
Thanks Mark,
Now, how do you intercept the WM_LBUTTONDOWN notification from the main window before the control beneath will intercept and handle it? I have an ActiveX control beneath. (2D Graph ActiveX Control[^])?
If this is not possible, can I intercept the notification after the control beneath?
Thanks in advance.
-- Ricky Marek (AKA: rbid)
-- "Things are only impossible until they are not" --- Jean-Luc Picard
My articles
|
|
|
|
|
Well I didn't know there was a control beneath where you need to click
In that case you'd need to catch it at the control since that's where the click message goes.
So I guess in that case, maybe an owner-drawn control that draws nothing is a worthwile solution.
Mark
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
In a non-MFC application, I would have suggested owner-drawn pushbutton, with the "in" and "out" buttons the colour of the dialog box. (Not that I ever used owner-drawn pushbuttons, but I thought about it once.)
Of course, everything is easier with MFC. . .
|
|
|
|
|
normanS wrote: ForumVisual C++ / MFC
Subject:Re: Need to make a button (or checkbox) invisible..
Sender:normanS
Date:15:44 16 May '07
with the "in" and "out" buttons the colour of the dialog box.
This is a problem for me due that I have an ActiveX control beneath (2D Graph ActiveX Control[^]) has its background changing all the time... therefore making the "invisible button" follow these changes is not easy.
The solution may be to use a "rectangle" and add some code to intercept when the user clicks on the mouse over it, and if it is in the rectangle do something otherwise call the 2D Graph ActiveX Control[^] handler for the mouse click. (But I'm not sure if this will work)
-- Ricky Marek (AKA: rbid)
-- "Things are only impossible until they are not" --- Jean-Luc Picard
My articles
|
|
|
|