Bug 170855

Need to define #ifdef MOZ_UNICODE
and have WindowClass().
/r=shanjian;/sr=kin;/a=asa
This commit is contained in:
yokoyama%netscape.com 2002-10-16 23:22:44 +00:00
parent bbb2237692
commit 8bab2e8969
11 changed files with 79 additions and 0 deletions

View File

@ -46,6 +46,10 @@ CPPSRCS = \
DEFINES += -DWIN32_LEAN_AND_MEAN
ifdef MOZ_UNICODE
DEFINES += -DMOZ_UNICODE
endif
LOCAL_INCLUDES = \
-I$(topsrcdir)/widget/src/windows \
-I$(topsrcdir)/widget/src/xpwidgets \

View File

@ -175,6 +175,18 @@ PRBool nsButton::OnResize(nsRect &aWindowRect)
return PR_FALSE;
}
#ifdef MOZ_UNICODE
//-------------------------------------------------------------------------
//
// return the window class name and initialize the class if needed
//
//-------------------------------------------------------------------------
LPCWSTR nsButton::WindowClassW()
{
return L"BUTTON";
}
#endif /* MOZ_UNICODE */
//-------------------------------------------------------------------------
//
// return the window class name and initialize the class if needed

View File

@ -77,6 +77,9 @@ public:
protected:
nsString mLabel;
#ifdef MOZ_UNICODE
virtual LPCWSTR WindowClassW();
#endif /* MOZ_UNICODE */
virtual LPCTSTR WindowClass();
virtual DWORD WindowStyle();
virtual DWORD WindowExStyle();

View File

@ -200,6 +200,18 @@ PRBool nsCheckButton::OnResize(nsRect &aWindowRect)
return PR_FALSE;
}
#ifdef MOZ_UNICODE
//-------------------------------------------------------------------------
//
// return the window class name and initialize the class if needed
//
//-------------------------------------------------------------------------
LPCWSTR nsCheckButton::WindowClassW()
{
return L"BUTTON";
}
#endif /* MOZ_UNICODE */
//-------------------------------------------------------------------------
//
// return the window class name and initialize the class if needed

View File

@ -80,6 +80,9 @@ public:
protected:
PRBool mState;
#ifdef MOZ_UNICODE
virtual LPCWSTR WindowClassW();
#endif /* MOZ_UNICODE */
virtual LPCTSTR WindowClass();
virtual DWORD WindowStyle();
virtual DWORD WindowExStyle();

View File

@ -177,6 +177,18 @@ PRBool nsLabel::OnResize(nsRect &aWindowRect)
return PR_FALSE;
}
#ifdef MOZ_UNICODE
//-------------------------------------------------------------------------
//
// return the window class name and initialize the class if needed
//
//-------------------------------------------------------------------------
LPCWSTR nsLabel::WindowClassW()
{
return L"STATIC";
}
#endif /* MOZ_UNICODE */
//-------------------------------------------------------------------------
//
// return the window class name and initialize the class if needed

View File

@ -81,6 +81,9 @@ public:
protected:
nsLabelAlignment mAlignment;
#ifdef MOZ_UNICODE
virtual LPCWSTR WindowClassW();
#endif /* MOZ_UNICODE */
virtual LPCTSTR WindowClass();
virtual DWORD WindowStyle();
virtual DWORD WindowExStyle();

View File

@ -176,6 +176,18 @@ nsTextHelper::~nsTextHelper()
{
}
#ifdef MOZ_UNICODE
//-------------------------------------------------------------------------
//
// return the window class name and initialize the class if needed
//
//-------------------------------------------------------------------------
LPCWSTR nsTextHelper::WindowClassW()
{
return(L"EDIT");
}
#endif /* MOZ_UNICODE */
//-------------------------------------------------------------------------
//
// return the window class name and initialize the class if needed

View File

@ -68,6 +68,9 @@ public:
NS_IMETHOD PreCreateWidget(nsWidgetInitData *aInitData);
#ifdef MOZ_UNICODE
virtual LPCWSTR WindowClassW();
#endif /* MOZ_UNICODE */
virtual LPCTSTR WindowClass();
virtual DWORD WindowStyle();
virtual PRBool AutoErase();

View File

@ -180,6 +180,18 @@ PRBool nsTextWidget::OnResize(nsRect &aWindowRect)
return PR_FALSE;
}
#ifdef MOZ_UNICODE
//-------------------------------------------------------------------------
//
// return the window class name and initialize the class if needed
//
//-------------------------------------------------------------------------
LPCWSTR nsTextWidget::WindowClassW()
{
return(nsTextHelper::WindowClassW());
}
#endif /* MOZ_UNICODE */
//-------------------------------------------------------------------------
//
// return the window class name and initialize the class if needed

View File

@ -75,6 +75,9 @@ public:
protected:
#ifdef MOZ_UNICODE
virtual LPCWSTR WindowClassW();
#endif /* MOZ_UNICODE */
virtual LPCTSTR WindowClass();
virtual DWORD WindowStyle();
virtual DWORD WindowExStyle();