Subversion Repositories Kolibri OS

Rev

Rev 3921 | Rev 4036 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3921 Rev 3953
Line 12... Line 12...
12
idbRProp     equ 105
12
idbRProp     equ 105
Line 13... Line 13...
13
 
13
 
14
;---- thread for rbutton -----------------------------------------------------------------------
14
;---- thread for rbutton -----------------------------------------------------------------------
15
RButtonWin:
15
RButtonWin:
16
        mcall   40,100101b      ;SetMaskMessage 100101b
-
 
-
 
16
        mcall   40,100101b      ;SetMaskMessage 100101b
17
 
17
	mcall	48,3,sc,40
18
        stdcall GetNumIcon,[MouseX],[MouseY],-1
18
        stdcall GetNumIcon,[MouseX],[MouseY],-1
Line 19... Line 19...
19
        mov     [SelIcon],eax
19
        mov     [SelIcon],eax
20
 
20
 
Line 61... Line 61...
61
        mov     ecx,eax
61
        mov     ecx,eax
62
        mov     cx,16
62
        mov     cx,16
Line 63... Line 63...
63
 
63
 
64
        xor     ebx,ebx
64
        xor     ebx,ebx
65
        mov     bx,[RMenuW]
65
        mov     bx,[RMenuW]
66
        mov     esi,[RBMenuColor];0888888h
66
        mov     esi,[sc.work]	;[RBMenuColor];0888888h
Line 67... Line 67...
67
        mcall   8
67
        mcall   8
68
 
68
 
69
        mov     ebx,50000h
69
        mov     ebx,50000h
Line 91... Line 91...
91
        mov     dx,cx
91
        mov     dx,cx
92
        shl     ecx,16
92
        shl     ecx,16
93
        mov     cx,dx
93
        mov     cx,dx
Line 94... Line 94...
94
 
94
 
95
                                   ;¯¥à¢ ï à §¤¥«¨â¥«ì­ ï «¨­¨ï
95
                                   ;¯¥à¢ ï à §¤¥«¨â¥«ì­ ï «¨­¨ï
-
 
96
;        mcall   38,,,[RBMenuColor];0888888h
96
        mcall   38,,,[RBMenuColor];0888888h
97
        mcall   38,,,[sc.work]
97
        add     ecx,00010001h
98
        add     ecx,00010001h
Line 98... Line 99...
98
        mcall     ,,,
99
        mcall     ,,,
99
 
100
 
100
       ;------------
101
       ;------------
101
        mov     ecx,[esp]
102
        mov     ecx,[esp]
102
        add     ecx,2
103
        add     ecx,2
Line 103... Line 104...
103
        shl     ecx,16
104
        shl     ecx,16
-
 
105
        mov     cx,16
104
        mov     cx,16
106
 
105
 
107
;        mcall   8,,,idbRRedrawFon,[RBMenuColor];0888888h  ;3 ª­®¯ª¨ ¢â®à®£® ¡«®ª 
106
        mcall   8,,,idbRRedrawFon,[RBMenuColor];0888888h  ;3 ª­®¯ª¨ ¢â®à®£® ¡«®ª 
108
        mcall   8,,,idbRRedrawFon,[sc.work]
107
        add     ecx,00100000h
109
        add     ecx,00100000h
Line 132... Line 134...
132
        mov     ecx,[esp]
134
        mov     ecx,[esp]
133
        add     ecx,16*3+2
135
        add     ecx,16*3+2
134
        mov     dx,cx
136
        mov     dx,cx
135
        shl     ecx,16
137
        shl     ecx,16
136
        mov     cx,dx
138
        mov     cx,dx
137
        mcall   38,,,[RBMenuColor];0888888h
139
;        mcall   38,,,[RBMenuColor];0888888h
-
 
140
        mcall   38,,,[sc.work]
138
        add     ecx,00010001h
141
        add     ecx,00010001h
139
        mcall     ,,,
142
        mcall     ,,,
140
       ;------------
143
       ;------------
141
                                     ;1 ¨«¨ 2 ª­®¯ª¨ âà¥â쥣® ¡«®ª 
144
                                     ;1 ¨«¨ 2 ª­®¯ª¨ âà¥â쥣® ¡«®ª 
142
        mov     ecx,[esp]
145
        mov     ecx,[esp]
Line 144... Line 147...
144
        shl     ecx,16
147
        shl     ecx,16
145
        mov     cx,16
148
        mov     cx,16
146
        cmp     dword[SelIcon],-1
149
        cmp     dword[SelIcon],-1
147
        je      @f
150
        je      @f
Line 148... Line 151...
148
 
151
 
-
 
152
;        mcall   8,,,idbRDel,[RBMenuColor];0888888h
149
        mcall   8,,,idbRDel,[RBMenuColor];0888888h
153
        mcall   8,,,idbRDel,[sc.work]
150
        add     ecx,00100000h
154
        add     ecx,00100000h
-
 
155
;        mcall    ,,,idbRProp,[RBMenuColor];0888888h
Line 151... Line 156...
151
        mcall    ,,,idbRProp,[RBMenuColor];0888888h
156
        mcall    ,,,idbRProp,[sc.work]
152
 
157
 
153
        mov     ebx,50000h
158
        mov     ebx,50000h
154
        mov     bx,word[esp]
159
        mov     bx,word[esp]
Line 158... Line 163...
158
        mcall    ,,         ,RMenuProp
163
        mcall    ,,         ,RMenuProp
Line 159... Line 164...
159
 
164
 
160
        jmp     .endRM
165
        jmp     .endRM
Line 161... Line 166...
161
      @@:
166
      @@:
-
 
167
 
162
 
168
;        mcall   8,,,idbRAdd,[RBMenuColor];0888888h
163
        mcall   8,,,idbRAdd,[RBMenuColor];0888888h
169
        mcall   8,,,idbRAdd,[sc.work]
164
        mov     ebx,50000h
170
        mov     ebx,50000h
165
        mov     bx,word[esp]
171
        mov     bx,word[esp]