Hiding a CETSC UI Button (Windows Embedded CE 6.0)
1/6/2010
Applies to Windows Embedded CE 6.0 R2Update KB945975
This topic describes how to hide a button on the Windows Embedded CE Terminal Service Client (CETSC) main dialog box.
The following table shows the CETSC user interface (UI) buttons that you can hide:
Button | Control ID |
---|---|
Connect |
IDOK |
Cancel |
IDCANCEL |
Help |
ID_BUTTON_LOGON_HELP |
Options |
ID_BUTTON_OPTIONS |
To hide a button on the CETSC main dialog box
Start Platform Builder.
Open cetscoem.cpp, located in %_WINCEROOT%\PUBLIC\RDP\OAK\CETSC.
In the Initialize function implementation, add a call to ShowWindow for the button that you want to hide, and pass in the appropriate control ID and SW_HIDE for the second parameter. For example:
ShowWindow(GetDlgItem(hDlgMain, ID_BUTTON_LOGON_HELP), SW_HIDE);
On the Build menu, choose Global Build Settings, and then make sure that both Copy Files to Release Directory After Build and Make Run-Time Image After Build are selected.
On the Build menu, choose Advanced Build Commands, and then choose Build and Sysgen.
After you complete these steps and re-build the run-time image, when cetsc.exe starts during run time, it will call the functions in cetscoem.dll and apply your customizations to the CETSC UI.