06-01-2016, 11:17 AM
OK, just cosmetics...
1. anyway to have the toolbar button color text modified? I modified to Comic MS font, but always black color...boring
2. How to shrink toolbar to 1 pixel, and expand it back *by code*??
3. this one is important:
in the window procedure of the toolbar, what is the relation of the variables declared in the "body" of the function (i.e at the beginning of it) and the sub functions???
I want ot declare a str in body, and use it (i.e accessing it's value) in a sub function..sometimes I have problems doing it.
Must it be declared as global variable??
Macro Macro24
1. anyway to have the toolbar button color text modified? I modified to Comic MS font, but always black color...boring
2. How to shrink toolbar to 1 pixel, and expand it back *by code*??
3. this one is important:
in the window procedure of the toolbar, what is the relation of the variables declared in the "body" of the function (i.e at the beginning of it) and the sub functions???
I want ot declare a str in body, and use it (i.e accessing it's value) in a sub function..sometimes I have problems doing it.
Must it be declared as global variable??
Macro Macro24
function# hWnd message wParam lParam
def WM_MYMESSAGE WM_APP+1000
;here my str variable to use anywhere
str+ fichier="ORIGIN"
sel message
,case WM_INITDIALOG
,fichiers="VALUE TO KEEP EVERYWHERE"
,SetWindowSubclass(id(9999 hWnd) &sub.WndProc_Subclass 1 0)
,case WM_MYMESSAGE
#sub WndProc_Subclass
function# hwnd message wParam lParam uIdSubclass dwRefData
;NEEDED TO DECLARE GLOBAL??????
str+ fichier
;OutWinMsg message wParam lParam ;;uncomment to see received messages
sel message
,case WM_MBUTTONUP
,fichier="MODIFIED"
,sub.ecrire
int R=DefSubclassProc(hwnd message wParam lParam)
sel message
,case WM_NCDESTROY
,RemoveWindowSubclass(hwnd &sub.WndProc_Subclass uIdSubclass)
,;case ...
ret R
#sub ecrire v
str+ fichiers
out fichiers ;;should be "MODIFIED" after mouse click, "VALUE TO KEEP EVERYWHERE" if not