How to hide C from the status bar, how to hide the running window from C language

Updated on technology 2024-02-08
12 answers
  1. Anonymous users2024-02-05

    a) Principle.

    1. Minimization principle: first hide the window, and then draw the icon in the lower right corner.

    2) Program implementation.

    1. Custom message WM ShowTask: define WM ShowTask (WM user +1).

    2. Add a command response to the MFC:onsyscommand(uint nid, lparam lparam) function.

    if(nid==sc_minimize) totray();Minimize the function to the pallet.

    3. Add on message(WM ShowTask, OnShowTask) to the message map, where WM ShowTask is the message name and OnShowTask is the message response function defined by yourself, which is explained later.

    3) The content of the specific function.

    1. Minimize to the tray function.

    void cmydlg::totray()

    2. Restore the interface function.

    define the message response function afx msg lresult onshowtask(wparam wparam, lparam lparam) in the header file;

    wparam receives the id of the icon, while lparam receives the behavior of the mouse lresult cmydlg::onshowtask(wparam wparam,lparam lparam) break; case wm lbuttondblclk: double-click left-click to handle break; default:

    break; }return 0; }

    3. Delete the tray icon function.

    void cmydlg::deletetray()

  2. Anonymous users2024-02-04

    Big brother, if you don't learn to walk, it's like running. The window tray you're talking about is unique to win32 forms. Different platform implementations are different.

    The .NET environment is the easiest. I think you're still programming on consoles. One step at a time.

  3. Anonymous users2024-02-03

    Move the mouse to the lower part of the monitor, press the right-click attribute to block at the point, and the task will be blocked.

  4. Anonymous users2024-02-02

    Lift two chestnuts.

    **Disable the close button (grey out).

    #include

    #include

    void main()

    **Hide the close button.

    #include

    #include

    void main()

  5. Anonymous users2024-02-01

    1. Header file call 2. Use and write out the window**, 3. Or create a new MFC to create a window Here, **The default output is cmd, and you must create or use MFC by yourself if you want the window

  6. Anonymous users2024-01-31

    printf("\b ");Backspace, then cover with a space.

  7. Anonymous users2024-01-30

    What does the mouse on the desktop mean, I don't quite understand what you mean, please fill in your questions clearly.

  8. Anonymous users2024-01-29

    In general, the interface is hidden is the control desk program, and there are also process hidden, port hidden, startup hidden, data hidden, and so on, there are too many.

  9. Anonymous users2024-01-28

    The console program doesn't know that the window program also has window properties.

  10. Anonymous users2024-01-27

    #include

    #include

    #include

    #include

    #include

    #pragma comment(lib,"")main()

    Above, the file Full Path example is K: Looni C P1 Note to replace the single slash with a double slash.

    Swap it out with your file and path.

    shellexecutea is used in English. Unicode I haven't tried, with shellexecute. SW Hide has no windows.

  11. Anonymous users2024-01-26

    1. When calling the system function, use the b argument of start, system("start /b ping -t");to hide the window.

    2. system function:

    prototype: int system(const char * command);

    Function: Execute DOS (Windows) or Shell (Linux Unix) commands, and the parameter string command is the command name;

    Note: In Windows, the system function invokes a command in the console. In Linux Unix, the system function will call the fork function to generate a child process, and the child process will execute the command command, and then return the original process after the command is executed.

    Header Files:; Return value: 0 is returned if the command is successfully executed, and -1 is returned if the command is executed.

    3. Example: include

    #include

    int main()

  12. Anonymous users2024-01-25

    If you want to write a DLL that requires permanent memory, you should inject the DLL into any process in the operating system with a remote thread.

    For example, after the injection is successful, the dll will not end even if the process used to inject the dll ends.

    If the exe injection has to run in the background continuously, why not use a win32 application? Or just write a service.

    If the console program has to hide the console, why should the console be called to hide? Directly at the beginning of ** add:

    #pragma comment( linker, "/subsystem:\"windows\" /entry:\"maincrtstartup\"" )

    Pure hand to adopt.

Related questions
4 answers2024-02-08

2. 1, True 2, False (there is only one program) 3, False (not necessarily) 4, True. >>>More

24 answers2024-02-08

Operate from right to left, -i--so calculate -i first--, the operation level is higher, so it can be written as -(i--)i--for 8, add a - sign, so -i--is 8, at this time i--after, i=7, and then -i++ is the same, can be written as -(i++) so -i++ is -7, at this time i++ becomes 8,--i, subtract 1 before execution, so --i is 7, at this time i=7, ++i is the same, add 1 before executing i, so ++i is 8, at this time i=8, then calculate i--,i--is still equal to 8, then i minus one becomes 7, i++, i++ is equal to 7, and then i++, i=8, so finally i=8, and then print it out in turn, pay attention to the operation is from right to left, but print from left to right print i,i++,i--,i,--i,-i++,i-, so the check mark result is out.

7 answers2024-02-08

The first if(!) a) means that if a is equal to zero, take x -- the second and third means that if b and c are not 0, it is executed. >>>More

18 answers2024-02-08

C is process-oriented.

C++ is object-oriented. >>>More

12 answers2024-02-08

This problem requires understanding that the system allocates memory to static variables when compiling, and the memory units occupied by them are not released after the function call ends, that is, the value of the variable is the value of the previous function call at the next function call. >>>More