Author: gedmurphy
Date: Thu Nov 9 23:28:29 2006
New Revision: 24709
URL:
http://svn.reactos.org/svn/reactos?rev=24709&view=rev
Log:
- add some font data to the combo boxes
Modified:
trunk/reactos/base/applications/imagesoft/custcombo.c
trunk/reactos/base/applications/imagesoft/floatwindow.c
trunk/reactos/base/applications/imagesoft/imagesoft.rbuild
trunk/reactos/base/applications/imagesoft/mainwnd.c
trunk/reactos/base/applications/imagesoft/precomp.h
Modified: trunk/reactos/base/applications/imagesoft/custcombo.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/imagesof…
==============================================================================
--- trunk/reactos/base/applications/imagesoft/custcombo.c (original)
+++ trunk/reactos/base/applications/imagesoft/custcombo.c Thu Nov 9 23:28:29 2006
@@ -1,4 +1,4 @@
-#include "precomp.h"
+#include <precomp.h>
LRESULT WINAPI
Modified: trunk/reactos/base/applications/imagesoft/floatwindow.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/imagesof…
==============================================================================
--- trunk/reactos/base/applications/imagesoft/floatwindow.c (original)
+++ trunk/reactos/base/applications/imagesoft/floatwindow.c Thu Nov 9 23:28:29 2006
@@ -357,7 +357,7 @@
switch(Message)
{
case WM_CREATE:
-
+ {
FltInfo = (PFLT_WND)(((LPCREATESTRUCT)lParam)->lpCreateParams);
/*FIXME: read this from registry */
@@ -375,7 +375,7 @@
0,
(255 * 60) / 100,
LWA_ALPHA);
-
+ }
break;
case WM_TIMER:
@@ -423,6 +423,7 @@
case WM_NCMOUSEMOVE:
case WM_MOUSEMOVE:
+ {
if (FltInfo->bOpaque == FALSE)
{
SetWindowLong(hwnd,
@@ -442,6 +443,7 @@
200,
NULL);
}
+ }
break;
case WM_CLOSE:
@@ -449,6 +451,7 @@
break;
case WM_COMMAND:
+ {
if (LOWORD(wParam) == IDCANCEL)
ShowHideWindow(FltInfo);
@@ -483,6 +486,7 @@
lParam);*/
break;
}
+ }
break;
case WM_NCACTIVATE:
Modified: trunk/reactos/base/applications/imagesoft/imagesoft.rbuild
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/imagesof…
==============================================================================
--- trunk/reactos/base/applications/imagesoft/imagesoft.rbuild (original)
+++ trunk/reactos/base/applications/imagesoft/imagesoft.rbuild Thu Nov 9 23:28:29 2006
@@ -19,6 +19,7 @@
<file>about.c</file>
<file>custcombo.c</file>
<file>floatwindow.c</file>
+ <file>font.c</file>
<file>imageprop.c</file>
<file>imagesoft.c</file>
<file>imgedwnd.c</file>
Modified: trunk/reactos/base/applications/imagesoft/mainwnd.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/imagesof…
==============================================================================
--- trunk/reactos/base/applications/imagesoft/mainwnd.c (original)
+++ trunk/reactos/base/applications/imagesoft/mainwnd.c Thu Nov 9 23:28:29 2006
@@ -35,9 +35,9 @@
TBBUTTON TextButtons[] = {
{10, 0, TBSTATE_ENABLED, BTNS_SEP, {0}, 0, 0}, /*
separator */
- {TBICON_BOLD, ID_BOLD, TBSTATE_ENABLED, BTNS_BUTTON, {0}, 0, 0}, /* bold
*/
- {TBICON_ITALIC, ID_ITALIC, TBSTATE_ENABLED, BTNS_BUTTON, {0}, 0, 0}, /* italic
*/
- {TBICON_ULINE, ID_ULINE, TBSTATE_ENABLED, BTNS_BUTTON, {0}, 0, 0}, /*
underline */
+ {TBICON_BOLD, ID_BOLD, TBSTATE_ENABLED, BTNS_BUTTON | TBSTYLE_CHECK, {0}, 0,
0}, /* bold */
+ {TBICON_ITALIC, ID_ITALIC, TBSTATE_ENABLED, BTNS_BUTTON | TBSTYLE_CHECK, {0}, 0,
0}, /* italic */
+ {TBICON_ULINE, ID_ULINE, TBSTATE_ENABLED, BTNS_BUTTON | TBSTYLE_CHECK, {0}, 0,
0}, /* underline */
{10, 0, TBSTATE_ENABLED, BTNS_SEP, {0}, 0, 0}, /*
separator */
@@ -221,7 +221,8 @@
hFontType = CreateWindowEx(0,
WC_COMBOBOX,
NULL,
- WS_CHILD | WS_VISIBLE | CBS_DROPDOWN,
+ WS_CHILD | WS_VISIBLE | WS_VSCROLL |
+ CBS_DROPDOWN | CBS_SORT | CBS_HASSTRINGS, //|
CBS_OWNERDRAWFIXED,
0, 0, 120, 0,
hParent,
NULL,
@@ -243,6 +244,9 @@
{
DestroyWindow(hFontType);
}
+
+ /* Create the list of fonts */
+ FillFontStyleComboList(hFontType);
}
/* font size combo */
@@ -270,6 +274,9 @@
{
DestroyWindow(hFontSize);
}
+
+ /* Update the font-size-list */
+ FillFontSizeComboList(hFontSize);
}
break;
}
Modified: trunk/reactos/base/applications/imagesoft/precomp.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/imagesof…
==============================================================================
--- trunk/reactos/base/applications/imagesoft/precomp.h (original)
+++ trunk/reactos/base/applications/imagesoft/precomp.h Thu Nov 9 23:28:29 2006
@@ -390,6 +390,11 @@
VOID UninitFloatWndImpl(VOID);
BOOL ShowHideWindow(PFLT_WND FltInfo);
+/* font.c */
+VOID FillFontStyleComboList(HWND hwndCombo);
+VOID FillFontSizeComboList(HWND hwndCombo);
+
+/* custcombo.c */
VOID MakeFlatCombo(HWND hwndCombo);
#endif /* __IMAGESOFT_PRECOMP_H */