当前位置: 首页>>代码示例>>C++>>正文


C++ SetStatusBar函数代码示例

本文整理汇总了C++中SetStatusBar函数的典型用法代码示例。如果您正苦于以下问题:C++ SetStatusBar函数的具体用法?C++ SetStatusBar怎么用?C++ SetStatusBar使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了SetStatusBar函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: _SmallMessage

STATIC void _SmallMessage(char* buffer)
{
     _UpdateInterfaceState();

     SetStatusBar(RED, WHITE, "                                            ");
     SetStatusBar(RED, WHITE, buffer);
}
开发者ID:CivilPol,项目名称:sdcboot,代码行数:7,代码来源:ovlimpl.c

示例2: GetStatusBar

void MyFrame::DoCreateStatusBar(MyFrame::StatusBarKind kind, long style)
{
    wxStatusBar *statbarOld = GetStatusBar();
    if ( statbarOld )
    {
        SetStatusBar(NULL);
        delete statbarOld;
    }

    wxStatusBar *statbarNew = NULL;
    switch ( kind )
    {
        case StatBar_Default:
            statbarNew = new wxStatusBar(this, wxID_ANY, style, "wxStatusBar");
            statbarNew->SetFieldsCount(2);
            break;

        case StatBar_Custom:
            statbarNew = new MyStatusBar(this, style);
            break;

        default:
            wxFAIL_MSG(wxT("unknown status bar kind"));
    }

    SetStatusBar(statbarNew);
    ApplyPaneStyle();
    PositionStatusBar();

    m_statbarKind = kind;
}
开发者ID:emutavchi,项目名称:pxCore,代码行数:31,代码来源:statbar.cpp

示例3: ReportDefragDone

int ReportDefragDone(void)
{
    static int Initialized = FALSE;

    int control, i, result;

    if (!Initialized)
    {
        Initialize();
        Initialized = TRUE;
    }

    SetStatusBar(RED, WHITE, "                                            ");
    SetStatusBar(RED, WHITE, " Defragmentation done.");

    OpenWindow(&DoneDialog);
    do {
        control = ControlWindow(&DoneDialog);
    } while (control != OKBUTTON);
    CloseWindow();

    for (i = 0; i < 3; i++)
        if (SelectButtons[i].selected)
        {
            result = i;
            SelectButtons[i].selected = FALSE;
        }

    SelectButtons[DEFAULT_OPTION].selected = TRUE;
    return result;
}
开发者ID:CivilPol,项目名称:sdcboot,代码行数:31,代码来源:defrdone.c

示例4: QueryUserStop

int QueryUserStop(void)
{
     int control, result;
     static int Initialized = FALSE;

     PushHelpIndex(USER_STOP_INDEX);
     
     if (!Initialized)
     {
        Initialize();
        Initialized = TRUE;
     }
              
     SetStatusBar(RED, WHITE, "                                            ");
     SetStatusBar(RED, WHITE, " Defragmentation process stopped.");
     
     OpenWindow(&QueryBox);
     control = ControlWindow(&QueryBox);
     CloseWindow();

     /* Interpret values. */
     if (control == YESBUTTON)
        result = TRUE;
     else
        result = FALSE;

     PopHelpIndex();
     
     return result;
}
开发者ID:CivilPol,项目名称:sdcboot,代码行数:30,代码来源:stopdfrg.c

示例5: DrawScreen

void DrawScreen ()
{
     ColorScreen (LIGHTBLUE);

     DrawText (1, 1, "     Optimize                                                        F1 = help  ", BLACK, WHITE);

     SetStatusBar (RED, WHITE, "                                                                FreeDOS defrag  ");
     DelimitStatusBar (BLACK, WHITE, 62);

     DrawSingleBox(5, 19, 35, 5, WHITE, BLUE, " Status ");
     DrawSingleBox(41, 19, 35, 5, WHITE, BLUE, " Legend ");
     
     ClearStatusBar ();
     DrawText(6, 22, "      Elapsed time: 00:00:00", WHITE, BLUE);
     DrawText(6, 23, "        Full Optimization", WHITE, BLUE);

     DrawText(43, 20, "\t", BLINK+BLUE, WHITE);
     DrawText(44, 20, " - used", WHITE, BLUE);
     DrawText(43, 21, "r - reading", WHITE, BLUE);
     DrawText(43, 22, "b - bad", WHITE, BLUE);
     DrawText(43, 23, "Drive ?: 1 block =   0 clusters", WHITE, BLUE);
     
     DrawText(61, 20, "± - unused", WHITE, BLUE);
     DrawText(61, 21, "W - writing", WHITE, BLUE);
     DrawText(61, 22, "X - unmovable", WHITE, BLUE);
}
开发者ID:FDOS,项目名称:defrag,代码行数:26,代码来源:DRAWSCR.C

示例6: Create

yaetFrame::yaetFrame(wxWindow* parent,wxWindowID id)
{
    //(*Initialize(yaetFrame)
    wxMenuItem* MenuItem2;
    wxMenuItem* MenuItem1;
    wxMenu* Menu1;
    wxMenuBar* MenuBar1;
    wxMenu* Menu2;

    Create(parent, id, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxDEFAULT_FRAME_STYLE, _T("id"));
    MenuBar1 = new wxMenuBar();
    Menu1 = new wxMenu();
    MenuItem1 = new wxMenuItem(Menu1, idMenuQuit, _("Quit\tAlt-F4"), _("Quit the application"), wxITEM_NORMAL);
    Menu1->Append(MenuItem1);
    MenuBar1->Append(Menu1, _("&File"));
    Menu2 = new wxMenu();
    MenuItem2 = new wxMenuItem(Menu2, idMenuAbout, _("About\tF1"), _("Show info about this application"), wxITEM_NORMAL);
    Menu2->Append(MenuItem2);
    MenuBar1->Append(Menu2, _("Help"));
    SetMenuBar(MenuBar1);
    StatusBar1 = new wxStatusBar(this, ID_STATUSBAR1, 0, _T("ID_STATUSBAR1"));
    int __wxStatusBarWidths_1[1] = { -1 };
    int __wxStatusBarStyles_1[1] = { wxSB_NORMAL };
    StatusBar1->SetFieldsCount(1,__wxStatusBarWidths_1);
    StatusBar1->SetStatusStyles(1,__wxStatusBarStyles_1);
    SetStatusBar(StatusBar1);

    Connect(idMenuQuit,wxEVT_COMMAND_MENU_SELECTED,(wxObjectEventFunction)&yaetFrame::OnQuit);
    Connect(idMenuAbout,wxEVT_COMMAND_MENU_SELECTED,(wxObjectEventFunction)&yaetFrame::OnAbout);
    //*)
}
开发者ID:1342,项目名称:yaet,代码行数:31,代码来源:yaetMain.cpp

示例7: Create

labo22a05_tp_wx_dc_t3Frame::labo22a05_tp_wx_dc_t3Frame(wxWindow* parent,wxWindowID id)
{
    //(*Initialize(labo22a05_tp_wx_dc_t3Frame)
    wxMenuItem* MenuItem2;
    wxMenuItem* MenuItem1;
    wxMenu* Menu1;
    wxMenuBar* MenuBar1;
    wxMenu* Menu2;

    Create(parent, id, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxDEFAULT_FRAME_STYLE, _T("id"));
    Panel1 = new wxPanel(this, ID_PANEL1, wxPoint(160,168), wxDefaultSize, wxTAB_TRAVERSAL, _T("ID_PANEL1"));
    Panel2 = new wxPanel(Panel1, ID_PANEL2, wxPoint(16,16), wxSize(368,224), wxTAB_TRAVERSAL, _T("ID_PANEL2"));
    MenuBar1 = new wxMenuBar();
    Menu1 = new wxMenu();
    MenuItem1 = new wxMenuItem(Menu1, idMenuQuit, _("Quit\tAlt-F4"), _("Quit the application"), wxITEM_NORMAL);
    Menu1->Append(MenuItem1);
    MenuBar1->Append(Menu1, _("&File"));
    Menu2 = new wxMenu();
    MenuItem2 = new wxMenuItem(Menu2, idMenuAbout, _("About\tF1"), _("Show info about this application"), wxITEM_NORMAL);
    Menu2->Append(MenuItem2);
    MenuBar1->Append(Menu2, _("Help"));
    SetMenuBar(MenuBar1);
    StatusBar1 = new wxStatusBar(this, ID_STATUSBAR1, 0, _T("ID_STATUSBAR1"));
    int __wxStatusBarWidths_1[1] = { -1 };
    int __wxStatusBarStyles_1[1] = { wxSB_NORMAL };
    StatusBar1->SetFieldsCount(1,__wxStatusBarWidths_1);
    StatusBar1->SetStatusStyles(1,__wxStatusBarStyles_1);
    SetStatusBar(StatusBar1);

    Panel1->Connect(ID_PANEL1,wxEVT_PAINT,(wxObjectEventFunction)&labo22a05_tp_wx_dc_t3Frame::OnPanel1Paint,0,this);
    Connect(idMenuQuit,wxEVT_COMMAND_MENU_SELECTED,(wxObjectEventFunction)&labo22a05_tp_wx_dc_t3Frame::OnQuit);
    Connect(idMenuAbout,wxEVT_COMMAND_MENU_SELECTED,(wxObjectEventFunction)&labo22a05_tp_wx_dc_t3Frame::OnAbout);
    //*)
}
开发者ID:svilerino,项目名称:Desarrollo-Tecnica3,代码行数:34,代码来源:labo22a05_tp_wx_dc_t3Main.cpp

示例8: VTLOG

EnviroFrame::~EnviroFrame()
{
	VTLOG("Deleting Frame\n");

	m_mgr.UnInit();

	DeleteCanvas();

	delete m_pSceneGraphDlg;
	delete m_pPlantDlg;
	delete m_pFenceDlg;
	delete m_pTagDlg;
	delete m_pUtilDlg;
	delete m_pCameraDlg;
	delete m_pLocationDlg;
	delete m_pInstanceDlg;
	delete m_pLayerDlg;
	#ifdef VTP_NVIDIA_PERFORMANCE_MONITORING
    delete m_pPerformanceMonitorDlg;
    #endif
	delete m_pVIADlg;

	delete m_pStatusBar;
	delete m_pToolbar;
	SetStatusBar(NULL);
}
开发者ID:seanisom,项目名称:vtp,代码行数:26,代码来源:EnviroFrame.cpp

示例9: SetStatusBar

void CChildView::OnUpdatePrompt(CCmdUI* pCmdUI) 
{
	// TODO: Add your command update UI handler code here
	//my
	pCmdUI->SetCheck( !bm.m_CanMoveToBadPoint );
	SetStatusBar();
	//end
}
开发者ID:pickleburger,项目名称:BoxMan,代码行数:8,代码来源:ChildView.cpp

示例10: Create

url_searchFrame::url_searchFrame(wxWindow* parent,wxWindowID)
{
    //(*Initialize(url_searchFrame)
    wxMenuItem* MenuItem2;
    wxMenuItem* MenuItem1;
    wxFlexGridSizer* FlexGridSizer1;
    wxMenu* Menu1;
    wxBoxSizer* BoxSizer2;
    wxStaticText* StaticText1;
    wxBoxSizer* BoxSizer1;
    wxMenuBar* MenuBar1;
    wxStaticText* StaticText2;
    wxMenu* Menu2;

    Create(parent, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxDEFAULT_FRAME_STYLE, _T("wxID_ANY"));
    BoxSizer1 = new wxBoxSizer(wxHORIZONTAL);
    OutputTextCtrl = new wxTextCtrl(this, ID_TEXTCTRL1, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE|wxTE_READONLY|wxVSCROLL|wxHSCROLL, wxDefaultValidator, _T("ID_TEXTCTRL1"));
    BoxSizer1->Add(OutputTextCtrl, 1, wxALL|wxEXPAND, 5);
    BoxSizer2 = new wxBoxSizer(wxVERTICAL);
    FlexGridSizer1 = new wxFlexGridSizer(3, 2, 0, 0);
    StaticText1 = new wxStaticText(this, wxID_ANY, _("URL File"), wxDefaultPosition, wxDefaultSize, 0, _T("wxID_ANY"));
    FlexGridSizer1->Add(StaticText1, 1, wxALL|wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL, 5);
    URLFilePickerCtrl = new wxFilePickerCtrl(this, ID_FILEPICKERCTRL1, wxEmptyString, wxEmptyString, _T("*.txt"), wxDefaultPosition, wxDefaultSize, wxFLP_FILE_MUST_EXIST|wxFLP_OPEN, wxDefaultValidator, _T("ID_FILEPICKERCTRL1"));
    FlexGridSizer1->Add(URLFilePickerCtrl, 1, wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
    StaticText2 = new wxStaticText(this, wxID_ANY, _("Search Terms File"), wxDefaultPosition, wxDefaultSize, 0, _T("wxID_ANY"));
    FlexGridSizer1->Add(StaticText2, 1, wxALL|wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL, 5);
    SearchFilePickerCtrl = new wxFilePickerCtrl(this, ID_FILEPICKERCTRL2, wxEmptyString, wxEmptyString, _T("*.txt"), wxDefaultPosition, wxDefaultSize, wxFLP_FILE_MUST_EXIST|wxFLP_OPEN, wxDefaultValidator, _T("ID_FILEPICKERCTRL2"));
    FlexGridSizer1->Add(SearchFilePickerCtrl, 1, wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
    BoxSizer2->Add(FlexGridSizer1, 1, wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
    StartButton = new wxButton(this, ID_BUTTON1, _("Start"), wxDefaultPosition, wxDefaultSize, 0, wxDefaultValidator, _T("ID_BUTTON1"));
    BoxSizer2->Add(StartButton, 0, wxALL|wxEXPAND, 5);
    BoxSizer1->Add(BoxSizer2, 0, wxALL|wxALIGN_TOP, 5);
    SetSizer(BoxSizer1);
    MenuBar1 = new wxMenuBar();
    Menu1 = new wxMenu();
    MenuItem1 = new wxMenuItem(Menu1, idMenuQuit, _("Quit\tAlt-F4"), _("Quit the application"), wxITEM_NORMAL);
    Menu1->Append(MenuItem1);
    MenuBar1->Append(Menu1, _("&File"));
    Menu2 = new wxMenu();
    MenuItem2 = new wxMenuItem(Menu2, idMenuAbout, _("About\tF1"), _("Show info about this application"), wxITEM_NORMAL);
    Menu2->Append(MenuItem2);
    MenuBar1->Append(Menu2, _("Help"));
    SetMenuBar(MenuBar1);
    StatusBar1 = new wxStatusBar(this, ID_STATUSBAR1, 0, _T("ID_STATUSBAR1"));
    int __wxStatusBarWidths_1[1] = { -1 };
    int __wxStatusBarStyles_1[1] = { wxSB_NORMAL };
    StatusBar1->SetFieldsCount(1,__wxStatusBarWidths_1);
    StatusBar1->SetStatusStyles(1,__wxStatusBarStyles_1);
    SetStatusBar(StatusBar1);
    BoxSizer1->Fit(this);
    BoxSizer1->SetSizeHints(this);

    Connect(ID_BUTTON1,wxEVT_COMMAND_BUTTON_CLICKED,(wxObjectEventFunction)&url_searchFrame::OnStartButtonClick);
    Connect(idMenuQuit,wxEVT_COMMAND_MENU_SELECTED,(wxObjectEventFunction)&url_searchFrame::OnQuit);
    Connect(idMenuAbout,wxEVT_COMMAND_MENU_SELECTED,(wxObjectEventFunction)&url_searchFrame::OnAbout);
    //*)
}
开发者ID:mmirabent,项目名称:EmbeddedGui,代码行数:57,代码来源:url_searchMain.cpp

示例11: ReSetFrame

void CChildView::Created()
{
	//my
	bm.SetDrawWnd( this );
	bm.ReadMap( bm.m_nowmap );
	ReSetFrame();
	BeginThinkThread();
	SetStatusBar();
	//end
}
开发者ID:pickleburger,项目名称:BoxMan,代码行数:10,代码来源:ChildView.cpp

示例12: Create

labo22a05_tp07_t3Frame::labo22a05_tp07_t3Frame(wxWindow* parent,wxWindowID id)
{
    //(*Initialize(labo22a05_tp07_t3Frame)
    wxMenuItem* MenuItem2;
    wxMenuItem* MenuItem1;
    wxMenu* Menu1;
    wxMenuBar* MenuBar1;
    wxMenu* Menu2;

    Create(parent, id, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxDEFAULT_FRAME_STYLE, _T("id"));
    SetClientSize(wxSize(400,328));
    Panel1 = new wxPanel(this, ID_PANEL1, wxPoint(152,184), wxDefaultSize, wxTAB_TRAVERSAL, _T("ID_PANEL1"));
    Panel1->SetBackgroundColour(wxColour(29,105,222));
    Panel2 = new wxPanel(Panel1, ID_PANEL2, wxPoint(8,32), wxSize(176,80), wxTAB_TRAVERSAL, _T("ID_PANEL2"));
    Panel2->SetBackgroundColour(wxColour(29,105,227));
    lbl1 = new wxStaticText(Panel2, ID_STATICTEXT1, _("Ingrese Número"), wxPoint(32,0), wxDefaultSize, 0, _T("ID_STATICTEXT1"));
    txtNum = new wxTextCtrl(Panel2, ID_TEXTCTRL1, wxEmptyString, wxPoint(16,16), wxSize(144,24), 0, wxDefaultValidator, _T("ID_TEXTCTRL1"));
    txtNum->SetMaxLength(4);
    txtNum->SetBackgroundColour(wxColour(160,160,160));
    cmdGo = new wxButton(Panel1, ID_BUTTON1, _("Go!"), wxPoint(48,128), wxDefaultSize, 0, wxDefaultValidator, _T("ID_BUTTON1"));
    cmdGo->SetBackgroundColour(wxColour(160,160,160));
    lstResult = new wxListBox(Panel1, ID_LISTBOX1, wxPoint(192,32), wxSize(200,192), 0, 0, 0, wxDefaultValidator, _T("ID_LISTBOX1"));
    lstResult->SetBackgroundColour(wxColour(160,160,160));
    lbl2 = new wxStaticText(Panel1, ID_STATICTEXT2, _("Numero generado:"), wxPoint(8,232), wxDefaultSize, 0, _T("ID_STATICTEXT2"));
    txtNewNum = new wxTextCtrl(Panel1, ID_TEXTCTRL2, wxEmptyString, wxPoint(136,224), wxDefaultSize, 0, wxDefaultValidator, _T("ID_TEXTCTRL2"));
    txtNewNum->SetMaxLength(4);
    txtNewNum->Disable();
    MenuBar1 = new wxMenuBar();
    Menu1 = new wxMenu();
    MenuItem3 = new wxMenuItem(Menu1, ID_NewGame, _("&Nuevo"), _("Nueva Partida."), wxITEM_NORMAL);
    Menu1->Append(MenuItem3);
    MenuItem1 = new wxMenuItem(Menu1, idMenuQuit, _("&Salir\tAlt-F4"), _("Sale de la aplicacion."), wxITEM_NORMAL);
    Menu1->Append(MenuItem1);
    MenuBar1->Append(Menu1, _("&Juego"));
    Menu2 = new wxMenu();
    MenuItem4 = new wxMenuItem(Menu2, ID_GameHelp, _("&Juego"), _("Muestra las reglas del juego."), wxITEM_NORMAL);
    Menu2->Append(MenuItem4);
    MenuItem2 = new wxMenuItem(Menu2, idMenuAbout, _("&Acerca de...\tF1"), _("Informacion sobre la aplicacion."), wxITEM_NORMAL);
    Menu2->Append(MenuItem2);
    MenuBar1->Append(Menu2, _("Help"));
    SetMenuBar(MenuBar1);
    StatusBar1 = new wxStatusBar(this, ID_STATUSBAR1, 0, _T("ID_STATUSBAR1"));
    int __wxStatusBarWidths_1[1] = { -1 };
    int __wxStatusBarStyles_1[1] = { wxSB_NORMAL };
    StatusBar1->SetFieldsCount(1,__wxStatusBarWidths_1);
    StatusBar1->SetStatusStyles(1,__wxStatusBarStyles_1);
    SetStatusBar(StatusBar1);

    Connect(ID_BUTTON1,wxEVT_COMMAND_BUTTON_CLICKED,(wxObjectEventFunction)&labo22a05_tp07_t3Frame::OnButton1Click);
    Connect(idMenuQuit,wxEVT_COMMAND_MENU_SELECTED,(wxObjectEventFunction)&labo22a05_tp07_t3Frame::OnQuit);
    Connect(idMenuAbout,wxEVT_COMMAND_MENU_SELECTED,(wxObjectEventFunction)&labo22a05_tp07_t3Frame::OnAbout);
    //*)
    Connect(ID_GameHelp,wxEVT_COMMAND_MENU_SELECTED,(wxObjectEventFunction)&labo22a05_tp07_t3Frame::GameHelp);
    Connect(ID_NewGame,wxEVT_COMMAND_MENU_SELECTED,(wxObjectEventFunction)&labo22a05_tp07_t3Frame::NewGame);
}
开发者ID:svilerino,项目名称:Desarrollo-Tecnica3,代码行数:55,代码来源:labo22a05_tp07_t3Main.cpp

示例13: RecommendMethod

int RecommendMethod(int fragmentation, char drive, char* recommendation)
{
    char buffer[40];
    char* drv = "?";
    int   posx, control;

    static int Initialized = FALSE;

    if (!Initialized)
    {
       Initialize();
       Initialized = TRUE;
    }

    SetStatusBar(RED, WHITE, "                                            ");
    SetStatusBar(RED, WHITE, " Recommending defragmentation method.");

    itoa(fragmentation, buffer, 10);
    strcat(buffer, "% of drive ");
    drv[0] = drive;
    strcat(buffer, drv);
    strcat(buffer, ": is not fragmented.");

    controls[3] = CreateLabel(buffer,
                              DIALOGFORCOLOR, DIALOGBACKCOLOR,
                              TEXT_X, DIALOG_Y+2);

    posx = (DIALOG_X_LEN / 2) - (strlen(recommendation) / 2) + DIALOG_X; 
    
    controls[4] = CreateLabel(recommendation,
                              BLUE, DIALOGBACKCOLOR,
                              posx, DIALOG_Y+6);

    OpenWindow(&RecommendDialog);
    control = ControlWindow(&RecommendDialog);
    CloseWindow();

    if (control == OPTIMIZEBUTTON) 
       return TRUE;
    else
       return FALSE;
}
开发者ID:CivilPol,项目名称:sdcboot,代码行数:42,代码来源:recoment.c

示例14: wxBoxSizer

/**
 * \brief Create the controls.
 */
void bf::main_frame::create_controls()
{
  wxBoxSizer* sizer = new wxBoxSizer(wxHORIZONTAL);
  m_animation_edit = new animation_edit( *this, m_workspace );

  sizer->Add(m_animation_edit, 1, wxEXPAND | wxALL, 5 );

  SetSizer(sizer);

  SetStatusBar( new wxStatusBar(this, wxID_ANY) );
} // main_frame::create_controls()
开发者ID:LibreGames,项目名称:bear,代码行数:14,代码来源:main_frame.cpp

示例15: while

void CChildView::OnNextMap() 
{
	// TODO: Add your command handler code here
	int i=bm.m_nowmap;
	while ( !bm.ReadMap( ++i ) && i<10000 );
	if ( i<10000 ) {
		//bm.m_nowmap = i;
		ReSetFrame();
		BeginThinkThread();
		SetStatusBar();
	}else MessageBox( L"没有你选择的这副地图.", L"ERROR", MB_ICONEXCLAMATION | MB_ICONWARNING);
}
开发者ID:pickleburger,项目名称:BoxMan,代码行数:12,代码来源:ChildView.cpp


注:本文中的SetStatusBar函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。