Invisible Dialog
-
i developed an application dialog based.i want to hide dialog i mean,Dialog application should exist in background process but its dialog window should not be visible at the front end.In other words just dialog window should not be displayed but its process should exist. thanks ajmal siddiqi ajmalsiddiqui
-
i developed an application dialog based.i want to hide dialog i mean,Dialog application should exist in background process but its dialog window should not be visible at the front end.In other words just dialog window should not be displayed but its process should exist. thanks ajmal siddiqi ajmalsiddiqui
this->Showwindow(SW_HIDE); Christian Graus - Microsoft MVP - C++
-
this->Showwindow(SW_HIDE); Christian Graus - Microsoft MVP - C++
hi sir.. i want as the dialog is created it should be hidden or as application is loaded dialog should be hidden.so sir to handle this situation where i should write this->ShowWindow(SW_HIDE); THANKS AJMAL ajmalsiddiqui
-
this->Showwindow(SW_HIDE); Christian Graus - Microsoft MVP - C++
The problem here is that when
CDialog::OnInitDialog()
finishes it will callShowWindow(SW_SHOW)
. The solution is to overrideOnWindowPosChanging()
and remove theSWP_SHOWWINDOW
flag.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
-
i developed an application dialog based.i want to hide dialog i mean,Dialog application should exist in background process but its dialog window should not be visible at the front end.In other words just dialog window should not be displayed but its process should exist. thanks ajmal siddiqi ajmalsiddiqui
Hello, In your init instance, your dialog is created and run modal! This means that you app only runs if your dialog exists. To change this behaviour, change the
InitInstance()
method to create a modeless dialog. Be sure to remove the visible style or callShowWindow(SW_HIDE)
in yourOnInitDialog()
method. Can you tell us why you need your window to be invisible? Maybe you are better off without a window! Behind every great black man... ... is the police. - Conspiracy brother Blog[^] -
Hello, In your init instance, your dialog is created and run modal! This means that you app only runs if your dialog exists. To change this behaviour, change the
InitInstance()
method to create a modeless dialog. Be sure to remove the visible style or callShowWindow(SW_HIDE)
in yourOnInitDialog()
method. Can you tell us why you need your window to be invisible? Maybe you are better off without a window! Behind every great black man... ... is the police. - Conspiracy brother Blog[^]thanks sir for replying actually i make a multithrreaded mfc applicaion .it has my own functionality and i want to run it in background as a process just like a service.And i donot want any window should apear so user cannot interact with my application. ajmal ajmalsiddiqui
-
thanks sir for replying actually i make a multithrreaded mfc applicaion .it has my own functionality and i want to run it in background as a process just like a service.And i donot want any window should apear so user cannot interact with my application. ajmal ajmalsiddiqui
So why not make a real service instead of a fake one? You'll be much happier with the results.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown