On platforms where M-Business Client has a toolbar, you can use the sample code below to specify a custom image for a toolbar button. This sample code is not currently included in the pods.zip file referenced in Downloading and working with the PODS sample files.
void CreateButton(PODSPod *pod) { HBITMAP hBitmap; HANDLE hDllModule; PODSWindow *window = PODSgetWindow(pod->avantgo); PODSToolbar *toolbar = PODSgetToolbar(window); PODSButton *button = PODScreateButton(toolbar); PODSsetCallback(button,MyFunction,NULL,NULL); hDllModule = GetDllModule(); hBitmap = (HBITMAP) LoadBitmap(hDllModule,MAKEINTRESOURCE(IDB_BUTTON_ORDER)); PODSsetImage(button,(PODSInt32)hBitmap); PODSsetVisible(button,PODS_TRUE); PODSsetEnabled(button,PODS_TRUE); } |
Send feedback about this page using email. | Copyright © 2008, iAnywhere Solutions, Inc. |