| | |
Hiding a window.
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: May 2008
Posts: 99
Reputation:
Solved Threads: 1
C++ Syntax (Toggle Plain Text)
#include <windows.h> #include <shellapi.h> int main(int argc, char* argv[]) { ShellExecute(NULL,"open","C:/Windows/System32/calc.exe",NULL,"C:/Windows/System32/",SW_HIDE); Sleep(1000); ShowWindow(FindWindow(NULL, "Calculator"), SW_HIDE); return 0; }
ok well if i dont have the sleep(1000); there it doesnt hide the window.
i want it to load the window hidden, not hide it once its loaded.
Does anyone have any suggestions.
Note: I have also tried CreateProcess() with the startup params.
![]() |
Similar Threads
- I want to reinstall windows xp and get rid of everything on the hard drive (Windows NT / 2000 / XP)
- Hiding the browser menu temporarily (ASP.NET)
- Windows security: File hiding (Network Security)
- help with this hiding text example Javascript (JavaScript / DHTML / AJAX)
- Man walks through a window (Geeks' Lounge)
- document.write to new window and into a 3 column table! Help Please! (JavaScript / DHTML / AJAX)
- n00b needs help hiding the black box (C++)
Other Threads in the C++ Forum
- Previous Thread: Recursion
- Next Thread: I have other problem?
| Thread Tools | Search this Thread |
Tag cloud for C++
api application array arrays based beginner binary bmp c++ c/c++ calculator char char* class classes code compile compiler console conversion convert count data delete deploy dll dynamiccharacterarray email encryption error file format forms fstream function functions game givemetehcodez graph gui homeworkhelp iamthwee ifstream input int java lib library lines list loop looping loops map math matrix memory newbie news number numbertoword output pointer problem program programming project python random read recursion recursive reference return rpg search simple sorting spoonfeeding string strings struct temperature template templates text text-file tree url variable vector video visual visualstudio void win32 windows winsock wordfrequency wxwidgets






