|
you can use WM_NCLBUTTONDBLCLK to close the application by adding oncancel(); in the function.
|
|
|
|
|
but i don't want to close the application... when i find the message i want only minimized...
do you understand?
Raiz<
|
|
|
|
|
you can use WM_NCLBUTTONDBLCLK and add oncancel() in the function it will work.
|
|
|
|
|
vimarsh puneet wrote: you can use WM_NCLBUTTONDBLCLK and add oncancel() in the function it will work.
hi.. what would you achieve in that!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and you
|
|
|
|
|
What part of the task bar are you double-clicking on? If you click your app on the taskbar it
will minimize - click it again it will restore, right?
Or are you referring to something else?
"If you can dodge a wrench, you can dodge a ball."
|
|
|
|
|
ok.. the app with standard dialog frame minimize and restore if i click on taskbar(my application), but i want a custumize application without dialog frame...
now do you understand??
thanks...
giulio
|
|
|
|
|
Ing.Raiz82 wrote: i want to minimized my application when i clicked (two times) on task bar... do you know the message?
have you check what WM_SYSCOMMAND contain for it!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and you
|
|
|
|
|
Hi,
I have an exe which is created with document view architecture and developed in VC6.It has dependencies also.Now I want to convert the whole application into a service.I should not create a service and invoke the exe from the service. I need to redesign the whole application so that it becomes a service.
How should i go for that?
Should i use .net or VC6 itself? I'm planning to use VC6 itself bcoz it has many dependencies which are in vc6 and uses 3rd party dlls also.
If using VC6, should i create using ATL COM appwizard -> Service.exe or simply create a cpp file for service?
Thanks & Regrads,
Sanju.
|
|
|
|
|
Well I think I can't really help you that much, but I also created a service some time ago.
And I know that a service has to be created as a win32 console application, so I am wondering of how your application can work as a service (because it uses document/view architecture and consists therefore of a GUI).
Because of that I think that you have some core logic in your application that works without a GUI. So you have to create a new console application for your service and put your "real" logic into that service. You can then rebuild your MFC app to access the logic in the service as a frontend (compare e.g. MSSQL Server: The "real" MSSQL server runs also as a service, but there exists also a frontend by which you can control this service).
VC6 is very old now, and I would suggest to start every new project with a newer version. But because this is an older application and you use many other third party libraries for VC6 I would suggest to stay to VC6, just because then you maybe don't have that much problems...
|
|
|
|
|
Hi,
Thank u all for ur replies.
Thanks & Regards,
sanju
|
|
|
|
|
I think you are new to write windows service if yes see this series articles "Driver Development Part 1: Introduction to Drivers" on the codeproject of Mr Toby Opferman(these articles use of VC 6)
write service is different of write a program if you have a problem on your program you can simply find problem but on services its hard.;)
|
|
|
|
|
WhiteSky wrote: rite service is different of write a program if you have a problem on your program you can simply find problem but on services its hard.
he he he,, who given you two vote! let me square it.. damm those people!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and you
|
|
|
|
|
First of all
hi alok how are you I seldom see you on the codeproject
and thank you for your vote but may I ask a question
'm wondering how do you find this message 3 April
|
|
|
|
|
WhiteSky wrote: and thank you for your vote but may I ask a question
'm wondering how do you find this message 3 April
i started from where i left!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and you
|
|
|
|
|
Well I think some people will be surprise when they see your answer to their question after this time;)
|
|
|
|
|
If you're using doc/view then why make it a service? Service applications run in their own
Windows instance and generally provide no user interface.
Why do you need to make it a service?
Mark
"If you can dodge a wrench, you can dodge a ball."
|
|
|
|
|
Also...everything you need to know about services can be found here: Services[^]
"If you can dodge a wrench, you can dodge a ball."
|
|
|
|
|
sanjutvm wrote: Should i use .net or VC6 itself? I'm planning to use VC6 itself bcoz it has many dependencies which are in vc6 and uses 3rd party dlls also.
If using VC6, should i create using ATL COM appwizard -> Service.exe or simply create a cpp file for service?
try to search for srvany.exe in google.. it could run any exe at service!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and you
|
|
|
|
|
HI,
I need to lunch the network connectionwizard thru my VC++ application. i will be glad enough for uor ans...
Thanx in advance
birajendu
CyberG India
Delhi
India
|
|
|
|
|
|
Programm3r wrote: an interval timer
What do you mean exactly by an interval timer ? A timer that fires every X msecs ?
If yes, that's how timers are working so I don't see the problem. Can you explain ?
|
|
|
|
|
Cedric Moonen wrote: A timer that fires every X msecs ?
Yes
Cedric Moonen wrote: Can you explain ?
When working with CLI(.Net) I know how to use timers. But I don't know how to use timers in C.
i.e I don't know what function to start looking at
Makes sense ?
Thanks for the response
Regards,
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r
My Blog: ^_^
|
|
|
|
|
Oh, sorry. I thought that you already knew timers but you wanted to do something very specific. The other answers will give you all the info you need .
|
|
|
|
|
Cedric Moonen wrote: Oh, sorry.
np
Thanks anyway
Regards,
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r
My Blog: ^_^
|
|
|
|
|
SetTimer [^] is probably along your way.
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.
|
|
|
|