本文整理汇总了C++中show_window函数的典型用法代码示例。如果您正苦于以下问题:C++ show_window函数的具体用法?C++ show_window怎么用?C++ show_window使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了show_window函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: add_tool
int _1080to540Window::create_objects()
{
int x = 10, y = 10;
add_tool(odd_first = new _1080to540Option(client, this, 1, x, y, _("Odd field first")));
y += 25;
add_tool(even_first = new _1080to540Option(client, this, 0, x, y, _("Even field first")));
show_window();
flush();
return 0;
}
示例2: add_subwindow
void DelayAudioWindow::create_objects()
{
add_subwindow(new BC_Title(10, 10, _("Delay seconds:")));
length = new DelayAudioTextBox(
plugin,
this,
10,
40);
length->create_objects();
update_gui();
show_window();
}
示例3: lock_window
void ManualGotoWindow::reset_data(double position)
{
lock_window();
reposition_window(
mwindow->gui->get_abs_cursor_x(1) - 250 / 2,
mwindow->gui->get_abs_cursor_y(1) - 80 / 2);
set_entered_position_sec(position);
signtitle->update("=");
activate();
show_window();
unlock_window();
}
示例4: add_subwindow
int BlurZoomWindow::create_objects()
{
int x = 10, y = 10;
add_subwindow(new BC_Title(x, y,
_("RadioacTV from EffectTV\n"
"Copyright (C) 2001 FUKUCHI Kentarou")
));
show_window();
flush();
return 0;
}
示例5: add_tool
void BC_NewFolder::create_objects()
{
int x = 10, y = 10;
add_tool(new BC_Title(x, y, _("Enter the name of the folder:")));
y += 20;
add_subwindow(textbox = new BC_TextBox(x, y, 300, 1, _("Untitled")));
y += 30;
add_subwindow(new BC_OKButton(this));
x = get_w() - 100;
add_subwindow(new BC_CancelButton(this));
show_window();
}
示例6: add_subwindow
void ReFrameWindow::create_objects()
{
int x = 10, y = 10;
add_subwindow(new BC_Title(x, y, _("Scale factor:")));
y += 20;
add_subwindow(new ReFrameOutput(plugin, x, y));
add_subwindow(new BC_OKButton(this));
add_subwindow(new BC_CancelButton(this));
show_window();
flush();
}
示例7: display_book_window
void display_book_window(book *b)
{
int *p;
if(!b)
return;
if(b->type==1){
p=&paper_win;
if(book_win!=-1)
hide_window(book_win);
} else {
p=&book_win;
if(paper_win!=-1)
hide_window(paper_win);
}
book_opened = b->id;
if(*p<0){
if(b->type==1)
*p=create_window(b->title, -1, 0, book_win_x, book_win_y, 320, 400, ELW_WIN_DEFAULT^ELW_CLOSE_BOX);
else if(b->type==2)
*p=create_window(b->title, -1, 0, book_win_x, book_win_y, 528, 320, ELW_WIN_DEFAULT^ELW_CLOSE_BOX); //width/height are different
set_window_handler(*p, ELW_HANDLER_DISPLAY, &display_book_handler);
set_window_handler(*p, ELW_HANDLER_MOUSEOVER, &mouseover_book_handler);
set_window_handler(*p, ELW_HANDLER_CLICK, &click_book_handler);
windows_list.window[*p].data=b;
} else {
if((point)windows_list.window[*p].data!=(point)b) {
safe_snprintf(windows_list.window[*p].window_name, sizeof(windows_list.window[*p].window_name), "%s", b->title);
windows_list.window[*p].data=b;
if(!get_show_window(*p))
show_window(*p);
select_window(*p);
} else if(!get_show_window(*p)) {
show_window(*p);
select_window(*p);
}
}
}
示例8: display_storage_menu
void display_storage_menu()
{
int i;
/* Entropy suggested hack to determine if this is the view only "#sto" opened storage */
view_only_storage = 0;
for (i = 0; i < no_storage_categories; i++)
{
if ((storage_categories[i].id != -1) && (strcmp(&storage_categories[i].name[1], "Quest") == 0))
{
view_only_storage = 1;
break;
}
}
if(storage_win<=0){
int our_root_win = -1;
if (!windows_on_top) {
our_root_win = game_root_win;
}
storage_win=create_window(win_storage, our_root_win, 0, storage_win_x, storage_win_y, storage_win_x_len, storage_win_y_len, ELW_WIN_DEFAULT|ELW_TITLE_NAME);
set_window_handler(storage_win, ELW_HANDLER_DISPLAY, &display_storage_handler);
set_window_handler(storage_win, ELW_HANDLER_CLICK, &click_storage_handler);
set_window_handler(storage_win, ELW_HANDLER_MOUSEOVER, &mouseover_storage_handler);
set_window_handler(storage_win, ELW_HANDLER_KEYPRESS, &keypress_storage_handler );
vscrollbar_add_extended(storage_win, STORAGE_SCROLLBAR_CATEGORIES, NULL, 130, 10, 20, 192, 0, 1.0, newcol_r, newcol_g, newcol_b, 0, 1,
max2i(no_storage_categories - STORAGE_CATEGORIES_DISPLAY, 0));
vscrollbar_add_extended(storage_win, STORAGE_SCROLLBAR_ITEMS, NULL, 352, 10, 20, 192, 0, 1.0, newcol_r, newcol_g, newcol_b, 0, 1, 28);
cm_add(windows_list.window[storage_win].cm_id, cm_storage_menu_str, context_storage_handler);
cm_add(windows_list.window[storage_win].cm_id, cm_dialog_options_str, context_storage_handler);
cm_bool_line(windows_list.window[storage_win].cm_id, ELW_CM_MENU_LEN+2, &sort_storage_categories, NULL);
cm_bool_line(windows_list.window[storage_win].cm_id, ELW_CM_MENU_LEN+3, &disable_storage_filter, NULL);
cm_bool_line(windows_list.window[storage_win].cm_id, ELW_CM_MENU_LEN+4, &autoclose_storage_dialogue, NULL);
cm_bool_line(windows_list.window[storage_win].cm_id, ELW_CM_MENU_LEN+5, &auto_select_storage_option, NULL);
} else {
no_storage=0;
for(i = 0; i < no_storage_categories; i++)
storage_categories[i].name[0] = to_color_char (c_orange1);
show_window(storage_win);
select_window(storage_win);
vscrollbar_set_pos(storage_win, STORAGE_SCROLLBAR_CATEGORIES, 0);
vscrollbar_set_pos(storage_win, STORAGE_SCROLLBAR_ITEMS, 0);
}
storage_text[0] = '\0';
set_window_name("", "");
}
示例9: main
// main
int
main(int argc, char** argv)
{
BApplication* app = new BApplication("application/x.vnd-Haiku.CopyBits");
BRect frame(50.0, 50.0, 300.0, 250.0);
show_window(frame, "CopyBits Test");
app->Run();
delete app;
return 0;
}
示例10: main
// main
int
main(int argc, char** argv)
{
BApplication* app = new BApplication(kAppSignature);
BRect frame(50.0, 50.0, 300.0, 250.0);
show_window(frame, "BView Archiving Test");
app->Run();
delete app;
return 0;
}
示例11: WinMain
int WINAPI WinMain(HINSTANCE hinst, HINSTANCE dont_care, LPSTR doont_care, int dooont_care)
{
static LPCTSTR name = _T("Second Reality");
me.hwnd = CreateWindow(register_class(hinst, name), name, WS_OVERLAPPEDWINDOW, 0, 0, 0, 0, NULL, NULL, hinst, NULL);
if (me.hwnd)
{
show_window(me.hwnd, 640, 480);
QueryPerformanceCounter(&me.initial_perf_counter);
QueryPerformanceFrequency(&me.perf_frequency);
demo_execute();
}
return 0;
}
示例12: toggle_recipe_window
static void toggle_recipe_window(void)
{
if (!recipes_loaded)
return;
recipes_shown=!recipes_shown;
if (recipes_shown)
show_window(recipe_win);
else
{
hide_window(recipe_win);
clear_recipe_filter();
}
}
示例13: createconsole
int createconsole(int argc, char *argv[])
{
if (win != NULL)
return 1;
if (app != NULL) /* delete existing partial data structures */
deleteconsole();
lines = malloc(NUM_LINES*NUM_COLUMNS*sizeof(TCHAR));
if (lines == NULL)
return 0;
memset(lines, __T(' '), NUM_LINES * NUM_COLUMNS);
app = new_app(argc, argv);
if (app == NULL) {
deleteconsole();
return 0;
} /* if */
font = new_font(app, "unifont", PLAIN | PORTABLE_FONT, 16);
if (font == NULL)
font = new_font(app, "courier", PLAIN | NATIVE_FONT, 16);
if (font == NULL)
font = find_default_font(app);
if (font == NULL) {
deleteconsole();
return 0;
} /* if */
win = new_window(app,
rect(0,0,
NUM_COLUMNS*font_width(font,"x",1),
NUM_LINES*font_height(font)),
"Pawn console",
TITLEBAR|CLOSEBOX|MAXIMIZE|MINIMIZE|CENTRED);
on_window_redraw(win, window_redraw);
on_window_close (win, window_close);
on_window_key_down(win, window_key_action); /* normal keys (including CR) */
show_window(win);
/* handle any pending events */
while (do_event(app))
/* nothing */;
csrx = 0;
csry = 0;
autowrap = 0;
attrib = 0x07;
return 1;
}
示例14: add_subwindow
void ShiftInterlaceWindow::create_objects()
{
int x = 10, y = 10;
int margin = 30;
add_subwindow(new BC_Title(x, y, _("Odd offset:")));
add_subwindow(odd_offset = new ShiftInterlaceOdd(plugin, x + 90, y));
y += margin;
add_subwindow(new BC_Title(x, y, _("Even offset:")));
add_subwindow(even_offset = new ShiftInterlaceEven(plugin, x + 90, y));
show_window();
flush();
}
示例15: on_quit
/* callback to quit application, giving the opportunity to not quit if so
* configured */
G_MODULE_EXPORT void
on_quit (GtkObject *object, gpointer user_data)
{
int dont_ask_to_quit;
dont_ask_to_quit = cf_getint(iiab_cf, DONTASKTOQUIT_CFNAME);
if (dont_ask_to_quit == CF_UNDEF)
dont_ask_to_quit = 0; /* default is to ask */
if (dont_ask_to_quit)
gtk_main_quit();
else
show_window("quit_win");
}