AniCreateButton(hWndDlg, TBB_NEXT, ID_NEXT1, ID_NEXT2, 68, 31, "This is the NEXT Button.", TX_TBB_HELP);
AniCreateButton(hWndDlg, TBB_LAST, ID_LAST1, ID_LAST2, 68, 31, "This is the LAST Button.", TX_TBB_HELP);
AniCreateButton(hWndDlg, TBB_NEW , ID_EYE1 , ID_EYE2 , 68, 31, "This is the INFORMATION Button.", TX_TBB_HELP);
AniCreateButton(hWndDlg, TBB_EXIT, ID_EXIT1, ID_EXIT2, 68, 31, "This is the EXIT Button.", TX_TBB_HELP);
AniCreateButton(hWndDlg, TBB_NA1, ID_NA1, ID_NA2 , 68, 31, "This button is not Currently used. Try clicking on one of the other buttons. Click the EXIT button to stop the test.", TX_TBB_HELP);
AniCreateButton(hWndDlg, TBB_NA2, ID_NA1, ID_NA2 , 68, 31, "This button is not Currently used. Try clicking on one of the other buttons. Click the EXIT button to stop the test.", TX_TBB_HELP);
AniCreateButton(hWndDlg, TBB_NA3, ID_NA1, ID_NA2 , 68, 31, "This button is not Currently used. Try clicking on one of the other buttons. Click the EXIT button to stop the test.", TX_TBB_HELP);
AniCreateButton(hWndDlg, TBB_NA4, ID_NA1, ID_NA2 , 68, 31, "This button is not Currently used. Try clicking on one of the other buttons. Click the EXIT button to stop the test.", TX_TBB_HELP);
AniCreateButton(hWndDlg, TBB_NA5, ID_NA1, ID_NA2 , 68, 31, "This button is not Currently used. Try clicking on one of the other buttons. Click the EXIT button to stop the test.", TX_TBB_HELP);
AniCreateButton(hWndDlg, TBB_NA6, ID_NA1, ID_NA2 , 68, 31, "This button is not Currently used. Try clicking on one of the other buttons. Click the EXIT button to stop the test.", TX_TBB_HELP);
AniCreateButton(hWndDlg, TBB_NA7, ID_NA1, ID_NA2 , 68, 31, "This button is not Currently used. Try clicking on one of the other buttons. Click the EXIT button to stop the test.", TX_TBB_HELP);
break; /* End of WM_INITDLG */
case WM_CONTROL:
switch(SHORT1FROMMP(mp1))
{
}
break; /* End of WM_CONTROL */
case WM_COMMAND:
switch(SHORT1FROMMP(mp1))
{
/*___________________________________
| |
| The following messages are just |
| so we can verify the button is |
| working correctly. |
|___________________________________*/
case TBB_FILE:
WinMessageBox(HWND_DESKTOP, HWND_DESKTOP,
"ToolBar Button Pressed.",
"This is Greg Ratajiks nifty Toolbar test! (10/8/93)",
0, MB_NOICON | MB_OK );
break;
case TBB_NEXT:
WinMessageBox(HWND_DESKTOP, hWndDlg, "ToolBar Button Pressed.", "You Have pressed the NEXT Toolbutton", 0, MB_NOICON | MB_OK );
break;
case TBB_LAST:
WinMessageBox(HWND_DESKTOP, hWndDlg, "ToolBar Button Pressed.", "You Have pressed the LAST Toolbutton", 0, MB_NOICON | MB_OK );
break;
case TBB_NEW :
WinMessageBox(HWND_DESKTOP, hWndDlg, "ToolBar Button Pressed.", "You Have pressed the INFORMATION Toolbutton", 0, MB_NOICON | MB_OK );
break;
case TBB_EXIT:
WinMessageBox(HWND_DESKTOP, hWndDlg, "ToolBar Button Pressed", "You Have pressed the EXIT Toolbutton", 0, MB_NOICON | MB_OK );
WinDismissDlg(hWndDlg, FALSE);
break;
case TBB_NA1 :
WinMessageBox(HWND_DESKTOP, hWndDlg, "ToolBar Button Pressed.", "You Have pressed the NA1 Toolbutton", 0, MB_NOICON | MB_OK );
break;
case TBB_NA2 :
WinMessageBox(HWND_DESKTOP, hWndDlg, "ToolBar Button Pressed.", "You Have pressed the NA2 Toolbutton", 0, MB_NOICON | MB_OK );
break;
case TBB_NA3 :
WinMessageBox(HWND_DESKTOP, hWndDlg, "ToolBar Button Pressed.", "You Have pressed the NA3 Toolbutton", 0, MB_NOICON | MB_OK );
break;
case TBB_NA4 :
WinMessageBox(HWND_DESKTOP, hWndDlg, "ToolBar Button Pressed.", "You Have pressed the NA4 Toolbutton", 0, MB_NOICON | MB_OK );
break;
case TBB_NA5 :
WinMessageBox(HWND_DESKTOP, hWndDlg, "ToolBar Button Pressed.", "You Have pressed the NA5 Toolbutton", 0, MB_NOICON | MB_OK );
break;
case TBB_NA6 :
WinMessageBox(HWND_DESKTOP, hWndDlg, "ToolBar Button Pressed.", "You Have pressed the NA6 Toolbutton", 0, MB_NOICON | MB_OK );
break;
case TBB_NA7 :
WinMessageBox(HWND_DESKTOP, hWndDlg, "ToolBar Button Pressed.", "You Have pressed the NA7 Toolbutton", 0, MB_NOICON | MB_OK );