Hiding a CETSC UI Button

Other versions of this page are also available for the following:

Windows Mobile Not SupportedWindows Embedded CE Supported

8/28/2008

Applies to Windows Embedded CE 6.0 R2 Update 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

  1. Start Platform Builder.

  2. Open cetscoem.cpp, located in %_WINCEROOT%\PUBLIC\RDP\OAK\CETSC.

  3. 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);
    
  4. 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.

  5. 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.

See Also

Other Resources

Customizing CETSC UI