Голям проблем със ToolBar-a

3 отговора 121 прегледа
#1

Голям проблем със ToolBar-a

Моя проблем е следния:
когато пусна една форма в Delphi на цял екран
BorderStyle := bsNone;
BelotF.Left := 0;
Top := 0;
Width := Screen.Width;
Height := Screen.Height;
и след излизането, разбира се съм правил разни неща междувременно, на ToolBar-а остава все едно че програмата още е стартирана и трябва да щракна на нея за да изчезне. Много е досадно. Може ли някой да ми помогне?

Отговор
в отговор на HACKCHO #2

Re: Голям проблем със ToolBar-a

Постави по-долният код в събитието OnClose на главната форма.

ShowWindow(Application.Handle, SW_HIDE);

Отговор
в отговор на HACKCHO #3

Re: Голям проблем със ToolBar-a

Не знам дали предното ще помогне - най-вероятно да - но аз имам същия проблем - с Delphi и една програма - но той се появява само на едни компютър (от поне 10 на които съм тествал ) и най-вероятно е бъг в Win -а - мисля 4е там е Вин95 - с коя версия тестваш? - може това да е проблема!

Отговор
в отговор на HACKCHO #4

Re: Голям проблем със ToolBar-a

Izpolzvai slednoto Api


VOID ExitProcess(
UINT uExitCode // exit code for all threads
);

Eto ti kratko poqsnenie:


The ExitProcess function ends a process and all its threads.

After all attached DLLs have executed any process termination value, this function terminates the current process.

Terminating a process causes the following:

All of the object handles opened by the process are closed.
All of the threads in the process terminate their execution.
The state of the process object becomes signaled, satisfying any threads that had been waiting for the process to terminate.
The states of all threads of the process become signaled, satisfying any threads that had been waiting for the threads to terminate.
The termination status of the process changes from STILL_ACTIVE to the exit value of the process.
Terminating a process does not cause child processes to be terminated.

Terminating a process does not necessarily remove the process object from the operating system. A process object is deleted when the last handle to the process is closed.

Uspeh :)
bofh

Отговор