main.cpp

来自「基于paragui实现的一个在linux操作系统下使用framebuffer来进」· C++ 代码 · 共 36 行

CPP
36
字号
#include "MyApplication.h"#include "iostream"using namespace std;int main(int argc, char **argv ){                     	MyApplication app;	if(app.IsDirectory(argv[1]) == false)        {              cout << "Wrong Path!" << endl;              exit(1);        }        strcpy(app.NowPath,argv[1]);	app.LoadTheme( "simple" );		app.InitScreen( 640, 480, 0 );	app.SetEmergencyQuit(true);        app.ShowCursor(PG_Application::NONE);		PmpListBox ListBox(NULL, PG_Rect(10,10,250,240));        app.MyListBox = &ListBox;	ListBox.Show();              // app.Add(&ListBox);      //  app.GotoFirst();//	PG_ListBoxItem* item;        app.GetFileList();        app.ShowItem(&ListBox);	app.Run();		return 0;}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?