comparison os2/dw.c @ 347:0137c30f485e

Simplified dw_notebook_page_new code.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Fri, 11 Apr 2003 13:58:05 +0000
parents 81fae15885d7
children 2216e65ad2ae
comparison
equal deleted inserted replaced
346:81fae15885d7 347:0137c30f485e
5023 * flags: Any additional page creation flags. 5023 * flags: Any additional page creation flags.
5024 * front: If TRUE page is added at the beginning. 5024 * front: If TRUE page is added at the beginning.
5025 */ 5025 */
5026 unsigned long API dw_notebook_page_new(HWND handle, ULONG flags, int front) 5026 unsigned long API dw_notebook_page_new(HWND handle, ULONG flags, int front)
5027 { 5027 {
5028 if(front)
5029 return (ULONG)WinSendMsg(handle, BKM_INSERTPAGE, 0L,
5030 MPFROM2SHORT((BKA_STATUSTEXTON | BKA_AUTOPAGESIZE | BKA_MAJOR | flags), BKA_FIRST));
5031 return (ULONG)WinSendMsg(handle, BKM_INSERTPAGE, 0L, 5028 return (ULONG)WinSendMsg(handle, BKM_INSERTPAGE, 0L,
5032 MPFROM2SHORT((BKA_STATUSTEXTON | BKA_AUTOPAGESIZE | BKA_MAJOR | flags), BKA_LAST)); 5029 MPFROM2SHORT((BKA_STATUSTEXTON | BKA_AUTOPAGESIZE | BKA_MAJOR | flags), front ? BKA_FIRST : BKA_LAST));
5033 } 5030 }
5034 5031
5035 /* 5032 /*
5036 * Remove a page from a notebook. 5033 * Remove a page from a notebook.
5037 * Parameters: 5034 * Parameters: