I want to hide those bar like below red rectangles for only showing my dockbar.
How to do it ? Is it possible to implement this?

Maybe you can make a “Skin”, that way you can customize Rhino to your liking.
See http://wiki.mcneel.com/developer/sdksamples/skin
I knew this example, but I still can’t set those interfaces. 
Oh. Ok, I did not know.
When I look in RhinoSdkApp.h I see the following four functions. Maybe they are what you need?
bool HideControlBars(UINT nCBMask=0xFFFFFFFF, int nDockState=0, bool bRedraw=true);
RHINO_SDK_FUNCTION
bool RestoreControlBars(bool bRedraw=true);
bool HideWindowBars(UINT nWBMask=0xFFFFFFFF, bool bRedraw=true);
RHINO_SDK_FUNCTION
bool RestoreWindowBars(bool bRedraw=true);
where the nCBMask can be any of
enum
{
HCB_COMMANDLINE_BAR = 0x00000001,
HCB_CURVATURE_ANALYSIS_BAR = 0x00000002,
HCB_CURVATURE_GRAPH_BAR = 0x00000004,
HCB_DRAFT_ANGLE_BAR = 0x00000008,
HCB_EDGE_ANALYSIS_BAR = 0x00000010,
HCB_EMAP_BAR = 0x00000020,
HCB_LAYER_BAR = 0x00000040,
HCB_LAYER_MANAGER_BAR = 0x00000080,
HCB_MOVE_UVN_BAR = 0x00000100,
HCB_NOTES_BAR = 0x00000200,
HCB_OSNAP_BAR = 0x00000400,
HCB_PROPERTIES_BAR = 0x00000800,
HCB_VIEW_MANAGER_BAR = 0x00001000,
HCB_ZEBRA_BAR = 0x00002000,
HCB_COMMAND_CONTEXT_BAR = 0x00004000,
};
and nWBMask can be any of
enum
{
HWB_TITLE_BAR = 0x00000001,
HWB_MENU_BAR = 0x00000002,
HWB_STATUS_BAR = 0x00000004,
};
Oh, and
RHINO_SDK_FUNCTION
bool HideToolBars(int nDockState=0, bool bRedraw=true);
RHINO_SDK_FUNCTION
bool RestoreToolBars(bool bRedraw=true);
It seem to useful. 
Now, I meet a problem.
I use those SDK funcctions in the skin ? or plugIn (OnLoadPlugIn())?
I put it in EventWatcher::OnInitRhino( CRhinoApp& app ) for the time being.
When Command line hided, I want it visible so that I run the function ,
RestoreControlBars();
But, it still hide. 
try this macro:
“-_commandprompt _show _toggle _enter”
Thank you! Jordy. 
I still try to set those interface, menu, tool bar… , in my SKIN.
But, It seem to be difficult for me. 
I think whether I should change those Keys before launching skin.

Oke if you want to hide the toolbars do something like this:
For i = 0 To Rhino.RhinoApp.ToolbarFiles.Count - 1
Rhino.RhinoApp.ToolbarFiles(0).Close(False)
Next
Next. For loading your toolbar:
Rhino.RhinoApp.ToolbarFiles.Open("C:\....\mytoolbar.RUI")
Some helpful macros
//toggle commandprompt
"-_commandprompt _show _toggle_enter"
//Toggle menu show/hide
"-_menu"
Hiding all panels:
For Each panel In Rhino.UI.Panels.GetOpenPanelIds
Rhino.UI.Panels.ClosePanel(panel)
Next
This should bring you close to what you want I guess xD
Thank you for help. 
I can feel your enthusiasm.
But you know, I develop this plugin through MFC. 
I should to learn C# in the future.
C++? Don’t know what MFC is 
MFC == Microsoft Foundation Classes - it is C++
Right !
You don’t need to know what MFC is, but you only know “don’t touch it”. XD
Isn’t it that with C++ more is possible than vb.NET or C#? So the things that I explained above is possible in C++?
@menno probably knows xD
I’ve tried to help @kaicihuang but I have never done this kind of thing.
Oke well C++ is out of my reach ^^ anyone else can translate it too C++? 
Something like this should work:
#include "/Program Files (x86)/Rhino 5.0 x64 SDK/inc/RhinoSdkUiFile.h"
void HideRhinoStuff()
{
CRhinoAppAppearanceSettings settings = RhinoApp().AppSettings().AppearanceSettings();
settings.m_show_menu = false;
settings.m_cmdprompt_position = CRhinoAppAppearanceSettings::command_prompt_hidden;
RhinoApp().AppSettings().SetAppearanceSettings(settings);
const int file_count = CRhinoUiFile::FileCount();
for (int index = 0; index < file_count; index++)
{
ON_UUID file_id = CRhinoUiFile::FileID(index);
CRhinoUiFile::FileClose(file_id);
}
}
Hi! Dale.
Where should I put it ? May I put it in Skin ?
I have three positions, SkinApp() constructor, OnLoadplugIn() and eventwatcher::OnInitRhino().
I had tried to put those positions, but those results were different for each position.
BTW, the file_count always is zero.
Three posiotion:
CSkinApp::CSkinApp(){}
BOOL CDockbarPlugIn::OnLoadPlugIn(){}
void CEventWatcher::OnInitRhino( CRhinoApp& app ){}
Below it my result.


OnLoadPlugIn() is always a good place to put this kind of stuff…
Dale,I had done it, but the command view is still showed,not be hidden. 