changeset 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 fa6aeb52d51a
files os2/dw.c
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/os2/dw.c	Fri Apr 11 13:35:50 2003 +0000
+++ b/os2/dw.c	Fri Apr 11 13:58:05 2003 +0000
@@ -5025,11 +5025,8 @@
  */
 unsigned long API dw_notebook_page_new(HWND handle, ULONG flags, int front)
 {
-	if(front)
-		return (ULONG)WinSendMsg(handle, BKM_INSERTPAGE, 0L,
-						  MPFROM2SHORT((BKA_STATUSTEXTON | BKA_AUTOPAGESIZE | BKA_MAJOR | flags), BKA_FIRST));
 	return (ULONG)WinSendMsg(handle, BKM_INSERTPAGE, 0L,
-					  MPFROM2SHORT((BKA_STATUSTEXTON | BKA_AUTOPAGESIZE | BKA_MAJOR | flags), BKA_LAST));
+							 MPFROM2SHORT((BKA_STATUSTEXTON | BKA_AUTOPAGESIZE | BKA_MAJOR | flags), front ? BKA_FIRST : BKA_LAST));
 }
 
 /*