Mercurial > dwindows
comparison os2/dw.c @ 1743:a297b2bde127
Added some comments that aided in remembering how the combobox
code worked on OS/2.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sun, 03 Jun 2012 19:44:04 +0000 |
parents | c68ee60fb8b0 |
children | 535e8c19a13d |
comparison
equal
deleted
inserted
replaced
1742:cebf830e3da7 | 1743:a297b2bde127 |
---|---|
3136 { | 3136 { |
3137 char classbuf[100]; | 3137 char classbuf[100]; |
3138 | 3138 |
3139 WinQueryClassName(tmp->window, 99, (PCH)classbuf); | 3139 WinQueryClassName(tmp->window, 99, (PCH)classbuf); |
3140 | 3140 |
3141 /* Slider/Percent */ | |
3141 if(strncmp(classbuf, "#38", 4) == 0) | 3142 if(strncmp(classbuf, "#38", 4) == 0) |
3142 { | 3143 { |
3143 int (API_FUNC valuechangedfunc)(HWND, int, void *) = (int (API_FUNC)(HWND, int, void *))tmp->signalfunction; | 3144 int (API_FUNC valuechangedfunc)(HWND, int, void *) = (int (API_FUNC)(HWND, int, void *))tmp->signalfunction; |
3144 | 3145 |
3145 if(tmp->window == hWnd || tmp->window == notifyhwnd) | 3146 if(tmp->window == hWnd || tmp->window == notifyhwnd) |
3168 | 3169 |
3169 dw_listbox_get_text(tmp->window, index, buf1, 500); | 3170 dw_listbox_get_text(tmp->window, index, buf1, 500); |
3170 | 3171 |
3171 _recursing = 1; | 3172 _recursing = 1; |
3172 | 3173 |
3174 /* Combobox */ | |
3173 if(id && strncmp(classbuf, "#2", 3)==0) | 3175 if(id && strncmp(classbuf, "#2", 3)==0) |
3174 { | 3176 { |
3175 char *buf2; | 3177 char *buf2; |
3176 | 3178 |
3177 buf2 = dw_window_get_text(tmp->window); | 3179 buf2 = dw_window_get_text(tmp->window); |