static void update_disks(void);
static void onclick(struct wgt_widget *w);
static void onmodify(struct wgt_widget *w);
+static void ck_usbonly_handler(struct wgt_widget *w);
int WINAPI WinMain(HINSTANCE hinst, HINSTANCE hprevinst, char *cmdline, int showcmd)
y = wgt_ypos_after(cb_devs, 16);
ck_usbonly = wgt_checkbox(win, "only show USB devices", 1, x, y,
- WGT_AUTO, WGT_AUTO, 0);
+ WGT_AUTO, WGT_AUTO, ck_usbonly_handler);
y = wgt_ypos_after(ck_usbonly, 16);
bn_inst = wgt_button(win, "Install", 10, y, WGT_AUTO, WGT_AUTO, onclick);
MessageBox(0, selstr, "selected item", MB_OK);
}
}
+
+static void ck_usbonly_handler(struct wgt_widget *w)
+{
+ printf("FOO\n");
+ update_disks();
+}