comparison os2/dw.c @ 2624:42cacc1a1783

OS/2: Fix a few search and replace errors.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Mon, 26 Jul 2021 23:39:24 +0000
parents d19652f760d7
children 401a3b9f21ba
comparison
equal deleted inserted replaced
2623:d19652f760d7 2624:42cacc1a1783
3229 3229
3230 if(!container) 3230 if(!container)
3231 { 3231 {
3232 NOTIFYRECORDEMPHASIS pre; 3232 NOTIFYRECORDEMPHASIS pre;
3233 3233
3234 dw_tree_dw_item_select(tmp->window, (HTREEITEM)mp2); 3234 dw_tree_item_select(tmp->window, (HTREEITEM)mp2);
3235 pre.pRecord = mp2; 3235 pre.pRecord = mp2;
3236 pre.fEmphasisMask = CRA_CURSORED; 3236 pre.fEmphasisMask = CRA_CURSORED;
3237 pre.hwndCnr = tmp->window; 3237 pre.hwndCnr = tmp->window;
3238 _dw_run_event(hWnd, WM_CONTROL, MPFROM2SHORT(0, CN_EMPHASIS), (MPARAM)&pre); 3238 _dw_run_event(hWnd, WM_CONTROL, MPFROM2SHORT(0, CN_EMPHASIS), (MPARAM)&pre);
3239 pre.pRecord->flRecordAttr |= CRA_CURSORED; 3239 pre.pRecord->flRecordAttr |= CRA_CURSORED;
9288 * Sets this item as the active selection. 9288 * Sets this item as the active selection.
9289 * Parameters: 9289 * Parameters:
9290 * handle: Handle to the tree window (widget) to be selected. 9290 * handle: Handle to the tree window (widget) to be selected.
9291 * item: Handle to the item to be selected. 9291 * item: Handle to the item to be selected.
9292 */ 9292 */
9293 void API dw_tree_dw_item_select(HWND handle, HTREEITEM item) 9293 void API dw_tree_item_select(HWND handle, HTREEITEM item)
9294 { 9294 {
9295 PRECORDCORE pCore = WinSendMsg(handle, CM_QUERYRECORD, (MPARAM)0L, MPFROM2SHORT(CMA_FIRST, CMA_ITEMORDER)); 9295 PRECORDCORE pCore = WinSendMsg(handle, CM_QUERYRECORD, (MPARAM)0L, MPFROM2SHORT(CMA_FIRST, CMA_ITEMORDER));
9296 9296
9297 while(pCore) 9297 while(pCore)
9298 { 9298 {
10056 * row: Zero based row of data being set. 10056 * row: Zero based row of data being set.
10057 * title: String title of the item. 10057 * title: String title of the item.
10058 */ 10058 */
10059 void API dw_container_set_row_title(void *pointer, int row, const char *title) 10059 void API dw_container_set_row_title(void *pointer, int row, const char *title)
10060 { 10060 {
10061 DWContainerInfo *ci = DWContainerInfo *)pointer; 10061 DWContainerInfo *ci = (DWContainerInfo *)pointer;
10062 PRECORDCORE temp; 10062 PRECORDCORE temp;
10063 int z, currentcount; 10063 int z, currentcount;
10064 CNRINFO cnr; 10064 CNRINFO cnr;
10065 char *newtitle; 10065 char *newtitle;
10066 10066
12317 * Sets window to click the default dialog item when an ENTER is pressed. 12317 * Sets window to click the default dialog item when an ENTER is pressed.
12318 * Parameters: 12318 * Parameters:
12319 * window: Window (widget) to look for the ENTER press. 12319 * window: Window (widget) to look for the ENTER press.
12320 * next: Window (widget) to move to next (or click) 12320 * next: Window (widget) to move to next (or click)
12321 */ 12321 */
12322 void API dw_window_dw_click_default(HWND window, HWND next) 12322 void API dw_window_click_default(HWND window, HWND next)
12323 { 12323 {
12324 WindowData *blah = (WindowData *)WinQueryWindowPtr(window, QWP_USER); 12324 WindowData *blah = (WindowData *)WinQueryWindowPtr(window, QWP_USER);
12325 12325
12326 if(blah) 12326 if(blah)
12327 blah->clickdefault = next; 12327 blah->clickdefault = next;