I save PNG into RC and compile it to EXE
I open EXE use Pelles C and show PNG DATA type.
I found Buttonbar not display PNG
- // RESOURCE SCRIPT generated by "Pelles C for Windows, version 8.00".
#include <windows.h>
#include <commctrl.h>
#include <richedit.h>
#define ALPHABMP 10
TB_TOP32x ALPHABMP "BmpIcon/Png/ButtonBar/GoFirstData32.png"
- Code: Select all Expand view RUN
DEFINE BUTTON oDlgBtn[1] OF ::oDlgBar ;
RESOURCE "TB_TOP32x" ;
PROMPT "首筆" ;
TOOLTIP "移動至第一筆記錄" ;
MESSAGE "記錄指標到第一筆記錄" ;
ACTION ( ::oBrw:Gotop() ,;
::oBrw:Refresh() ,;
::oBrw:SetFocus() )