comparison win/dw.c @ 999:1b40686277df

Fix for dw_notebook_page_new() changing active page incorrectly on Windows.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sun, 08 May 2011 00:47:54 +0000
parents dfa2204e231f
children 3e1c70896c13
comparison
equal deleted inserted replaced
998:f019c5e8511f 999:1b40686277df
6314 array[z]->realid = refid; 6314 array[z]->realid = refid;
6315 array[z]->item.mask = TCIF_TEXT; 6315 array[z]->item.mask = TCIF_TEXT;
6316 array[z]->item.iImage = -1; 6316 array[z]->item.iImage = -1;
6317 array[z]->item.pszText = ""; 6317 array[z]->item.pszText = "";
6318 TabCtrl_InsertItem(handle, z, &(array[z]->item)); 6318 TabCtrl_InsertItem(handle, z, &(array[z]->item));
6319
6320 if(oldpage > -1 && array[oldpage])
6321 SetParent(array[oldpage]->hwnd, DW_HWND_OBJECT);
6322
6323 TabCtrl_SetCurSel(handle, z);
6324 return refid; 6319 return refid;
6325 } 6320 }
6326 } 6321 }
6327 } 6322 }
6328 return -1; 6323 return -1;