progressbar.c

来自「嵌入式下基于MiniGUI的Web Browser」· C语言 代码 · 共 38 行

C
38
字号
/* * File: progressbar.c * * Copyright (C) 2004 Jorge Arellano Cid <jcid@dillo.org> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. */#include <stdio.h>#include "browser.h"#include "progressbar.h"/* * The progressbar is basically a GtkFrame with a text label. */void* a_Progressbar_new(void){   printf ("a_Progressbar_new called.\n");   return NULL;}/* * Update the specified progress bar. *  updatestr : String to display within the bar (NULL is ignored) *  sens      : sensitivity (0 = set insensitive, 1 = set sensitive) */void a_Progressbar_update (BrowserWindow* bw, const char *updatestr, gint sens){   if (updatestr && bw->hwnd_progressbar != -1)      SetWindowText(bw->hwnd_progressbar, updatestr);}

⌨️ 快捷键说明

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