Click here to Skip to main content
15,909,898 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: getting character position from mouse position Pin
Mark Salsbery13-Oct-07 7:11
Mark Salsbery13-Oct-07 7:11 
GeneralRe: getting character position from mouse position Pin
LejonO13-Oct-07 11:24
LejonO13-Oct-07 11:24 
GeneralRe: getting character position from mouse position Pin
Mark Salsbery13-Oct-07 11:32
Mark Salsbery13-Oct-07 11:32 
GeneralRe: getting character position from mouse position Pin
LejonO13-Oct-07 22:25
LejonO13-Oct-07 22:25 
GeneralRe: getting character position from mouse position Pin
Mark Salsbery14-Oct-07 5:46
Mark Salsbery14-Oct-07 5:46 
QuestionMSWord Automation through vc++ Pin
chandu00413-Oct-07 0:36
chandu00413-Oct-07 0:36 
AnswerRe: MSWord Automation through vc++ Pin
led mike13-Oct-07 5:39
led mike13-Oct-07 5:39 
QuestionWhere to Put ShowWindow Pin
GauranG Shah12-Oct-07 20:55
GauranG Shah12-Oct-07 20:55 
Hello Friends,

I want my application to run in the background. And it displays only when some cliked in taskbar icon.

But I am not getting where to put the ShowWindow(hWnd,SW_HIDE); to hide the window.so that it doesn't appeare when It is loaded at startup.(I have set the registry, so that it runs at startup).

I have tryed to put it in following places but getting errors.

case WM_INITDIALOG:
{
//If I use the ShowWindow in the begining of the WM_INITDIALOG.
//I am geeting 02 as Error Code. Which Means "The system cannot find the file specified. "

if( ! ShowWindow(hWndDlg,SW_HIDE) ) //Hide the main window
dError = GetLastError();

...
...


//If I use the ShowWindow at the End of the WM_INITDIALOG.
//I am geeting 170 as Error Code. Which Means "The requested resource is in use."
if( ! ShowWindow(hWndDlg,SW_HIDE) ) //Hide the main window
dError = GetLastError();


}






AnswerRe: Where to Put ShowWindow Pin
Hamid_RT12-Oct-07 21:00
Hamid_RT12-Oct-07 21:00 
AnswerRe: Where to Put ShowWindow Pin
chandu00412-Oct-07 21:31
chandu00412-Oct-07 21:31 
AnswerRe: Where to Put ShowWindow Pin
Tony Hill13-Oct-07 0:55
professionalTony Hill13-Oct-07 0:55 
AnswerRe: Where to Put ShowWindow Pin
Mark Salsbery13-Oct-07 6:36
Mark Salsbery13-Oct-07 6:36 
GeneralCuriosity Pin
Nelek14-Oct-07 21:39
protectorNelek14-Oct-07 21:39 
GeneralRe: Curiosity Pin
Mark Salsbery15-Oct-07 5:50
Mark Salsbery15-Oct-07 5:50 
GeneralRe: Curiosity Pin
Nelek15-Oct-07 22:49
protectorNelek15-Oct-07 22:49 
AnswerRe: Where to Put ShowWindow Pin
David Crow14-Oct-07 17:22
David Crow14-Oct-07 17:22 
GeneralRe: Where to Put ShowWindow Pin
GauranG Shah14-Oct-07 19:49
GauranG Shah14-Oct-07 19:49 
GeneralRe: Where to Put ShowWindow Pin
David Crow15-Oct-07 3:13
David Crow15-Oct-07 3:13 
QuestionRe: Where to Put ShowWindow [SOLVED] Pin
GauranG Shah14-Oct-07 23:59
GauranG Shah14-Oct-07 23:59 
AnswerRe: Where to Put ShowWindow [SOLVED] Pin
Mark Salsbery15-Oct-07 5:51
Mark Salsbery15-Oct-07 5:51 
Questiondynamic Listbox control Pin
s196675m12-Oct-07 20:52
s196675m12-Oct-07 20:52 
AnswerRe: dynamic Listbox control Pin
Hamid_RT12-Oct-07 20:55
Hamid_RT12-Oct-07 20:55 
AnswerRe: dynamic Listbox control Pin
chandu00412-Oct-07 21:23
chandu00412-Oct-07 21:23 
GeneralRe: dynamic Listbox control Pin
s196675m13-Oct-07 5:13
s196675m13-Oct-07 5:13 
GeneralRe: dynamic Listbox control Pin
chandu00413-Oct-07 5:50
chandu00413-Oct-07 5:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.