 |
|
 |
Thanks for this handy framework!
I brought it into VS2003, converted projects as offered, and ran into two build problems: (1) had to change HTASK to DWORD in the arg list of OnActivateApp; (b) removed Enable3dControls calls in InitInstance -- doc says these are no longer needed.
-- Jim
|
|
|
|
 |
|
 |
I tried downloading your code and run it but it generates compile time error and says "Debugging Information Corrupt; recompile module.
Is this program helpful if i want to crate screensaver out of flash files (.swf)?
|
|
|
|
 |
|
 |
Do a Rebuild.
Yes, this is simply a framework. You can do whatever you want on top of the framework.
|
|
|
|
 |
|
 |
Thanks, liked this sample.
Hi, I'm a .sig virus! Copy me to your .sig file and help me propagate!
|
|
|
|
 |
|
 |
It's solved lot's and lot's of problem faced by me .
Thanks
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
 |
|
 |
Help me, please!
I have to write a screen saver that runs another application if found (a .EXE Flash animation running in a full screen window). This animation will work as the screen
saver window.
I have these problems:
1. How can I control mouse and keyboard events sent to animation window?
I think with same hooks but I don't know how to use them.
2. How can I control that the activated window is the one created by the animation
(i.e. if another application pops up its window screen saver must exit)?
3. There are other events I have to control?
Please, help me. This is my first Windows application and I don't know where I can find some info about this matter.
Thanks.
PS: I beg your pardon for my dreadful English!
|
|
|
|
 |
|
 |
I am drawing pictures to the screen and wanted to know how I can find the center of the screen. Also do you know a way to determine the users screen resolution? (ie. pixel coords (1152 x 864 pixels)?
Joel Parker
|
|
|
|
 |
|
 |
const int nWidth = ::GetSystemMetrics(SM_CXSCREEN);
const int nHeight = ::GetSystemMetrics(SM_CYSCREEN);
const int nCenterX = nWidth / 2;
const int nCenterY = nHeight / 2;
|
|
|
|
 |
|
 |
How can I make your install program work with my saver.scr???
|
|
|
|
 |
|
 |
I'd like instead of animation have a browser that displays my home page.
I was thinking to host an activeX control in a window. Which window should host it?
Or
maybe I should change CDrawWin with CHtmlView?
Just asking for the opinion.
|
|
|
|
 |
|
 |
You can host the Web browser control in the CDrawWin window. Remember to call AfxEnableControlContainer() in the InitInstance().
|
|
|
|
 |
|
 |
Thanks. I added the Web Browser control by creating it in OnCreate member function of CDrawWin.
However, now I see te mouse over the browser component and I can see the cursor.
Only keyboadr keys are closing the saver. It gets wors when I click into web browser component, then I cannot close the saver at all.
Where should I handle those messages and how?
|
|
|
|
 |
|
 |
I called the CWnd::SetCapture() function in the CDrawWnd::OnCreate() to let CDrawWnd object capture all mouse messages.
AND that solve my problem.
Could I do it some other way?
|
|
|
|
 |
|
 |
That's the correct way to do it.
|
|
|
|
 |
|
|
 |
|
 |
You disable cursor icor within the framework. I load this webbrowser control that enables cursors back.
Is it posible to stop the webbrowser component from setting cursor back?
|
|
|
|
 |
|
 |
Try calling ::SetCursor(NULL) or ::ShowCursor(FALSE) after the Web browser is fully loaded. For example, post a user-defined message in CDrawWin::OnCreate() and then handle the message.
|
|
|
|
 |
|
 |
You mean something like this:
in CDrawWnd::OnCreate()
{
//create browser component here
....
SendMessage( WM_SETCURSOR, 0, 0 );
}
BOOL CDrawWnd::OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message)
{
::SetCursor(NULL);
return 0;
}
|
|
|
|
 |
|
 |
No.
1. Use PostMessage() instead of SendMessage().
2. Use a user-defined message (e.g., (WM_USER + 1)) instead of WM_SETCURSOR.
|
|
|
|
 |
|
 |
Thank you.
Placing a call
::ShowCursor(FALSE);
In the user-defined hanler did the whole work.
|
|
|
|
 |
|
 |
U used some DLL files. Can U say about that DLL files.
Bcoz' we r going to develop screensavers using VC++. If u give some tipst it'll be helpful to us
|
|
|
|
 |
|
 |
Sorry, I don't understand your question.
|
|
|
|
 |
|
 |
Dear Sir:
Your screen saver sample code is very easy to modify. It bring me much convenience and let me know more about this issue. But I have a question. When I copy saver.scr to system directory, it shows "Saver" in the combo box of screen saver selecting dialog. If I change file name to "saverxxx.scr", it can shows "saverxxx" correctly(xxx = anything). If I use other name like "aaa.scr" or "bbb.scr", it always shows "Screen Saver" in the combox! Would you please give me a hand?
I want to write a "manager" to generate different savers which will show different photos and all these savers use the same file saver.scr .(The manager will change file name and prepare different photos for every saver) Does it possiable?
Thank you very much!
Best Regards,
Terry Hsu
Hsin Chu, Taiwan
|
|
|
|
 |
|
 |
On Windows NT/2000/XP, if the screen saver has a string resource with ID 1, then this string is used as the description line for the screen saver in the Control Panel. If it does not have this string, or if it is on Windows 9x/ME, then the long filename of the screen saver is used.
Therefore, you need to change the IDS_DESCRIPTION string in the Saver.rc and the filename of the executable.
|
|
|
|
 |
|
 |
Perhaps this a stupidness question, but I curiousity... Is possible to displaye control (for exmpl static control) in a screensaver?
Thanksing you muchly for helpness.
|
|
|
|
 |