Link to home
Start Free TrialLog in
Avatar of huochai
huochai

asked on

How can i remove the "ok" button>>??

Hi,
when i executed my program, a pop-up menu appeared with the "ok" button on the top right corner...
How can i remove the "ok" button??
The code is written as:
"MessageBox (NULL, TEXT("Sending data succeeded!"), TEXT("Info"),
MB_OK);"
I not using MFC..
Hope to hear from you all soon...
Thanks in advance
huochai
Avatar of AlexFM
AlexFM

Do you want message box without OK button? How can it be closed by user?
Avatar of huochai

ASKER

Hi,
   Is it possible to close the messagebox itself after it have displayed for a few seconds ( without pressing the "ok" button) ..??
Thanks in advance
huochai
 
   
Avatar of huochai

ASKER

Hi,
   I have read through the program mentioned above ..
   However i using Embedded Visual C++... I could not find the header file <process.h> so i can't compile the program..
   What should I do ..??
   Is it i have to find a similar header file as <process.h> .. If it is, which header file should I include..??

   I tried using the function EndDialog() but it does not close the dialog box...
   The code for my program is ..
     "MessageBox (NULL, TEXT("Sending data succeeded!"),   TEXT("Info"),MB_OK | MB_ICONEXCLAMATION);  
      EndDialog(hwndMessageBox,50);"
   How am I going to do about it>>??
Thanks in advance
huochai
ASKER CERTIFIED SOLUTION
Avatar of AlexFM
AlexFM

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Answered by: AlexFM

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

Tinchos
EE Cleanup Volunteer