aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32/ScintillaWin.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2000-04-04 13:35:59 +0000
committernyamatongwe <unknown>2000-04-04 13:35:59 +0000
commit416476290c88d15ac7297989f77fac50f5c9fcef (patch)
tree3dced34d6c9f802d7e075554cea761616ce69c8b /win32/ScintillaWin.cxx
parent42799425f8c02442df8b1af1a024a3fe8fa6e93f (diff)
downloadscintilla-mirror-416476290c88d15ac7297989f77fac50f5c9fcef.tar.gz
Avoid lots of warnings from Borland C++.
Changed name of interface class defined in Accessor.h to Accessor.
Diffstat (limited to 'win32/ScintillaWin.cxx')
-rw-r--r--win32/ScintillaWin.cxx13
1 files changed, 7 insertions, 6 deletions
diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx
index 2e3143054..9334ae215 100644
--- a/win32/ScintillaWin.cxx
+++ b/win32/ScintillaWin.cxx
@@ -93,7 +93,7 @@ class ScintillaWin :
bool capturedMouse;
- UINT cfColumnSelect;
+ CLIPFORMAT cfColumnSelect;
DropSource ds;
DataObject dob;
@@ -164,7 +164,7 @@ public:
friend class DropSource;
friend class DataObject;
friend class DropTarget;
- bool DragIsRectangularOK(UINT fmt) {
+ bool DragIsRectangularOK(CLIPFORMAT fmt) {
return dragIsRectangle && (fmt == cfColumnSelect);
}
};
@@ -177,7 +177,8 @@ ScintillaWin::ScintillaWin(HWND hwnd) {
// There does not seem to be a real standard for indicating that the clipboard contains a rectangular
// selection, so copy Developer Studio.
- cfColumnSelect = ::RegisterClipboardFormat("MSDEVColumnSelect");
+ cfColumnSelect = static_cast<CLIPFORMAT>(
+ ::RegisterClipboardFormat("MSDEVColumnSelect"));
wMain = hwnd;
wDraw = hwnd;
@@ -527,7 +528,7 @@ bool ScintillaWin::ModifyScrollBars(int nMax, int nPage) {
sizeof(sci)
};
sci.fMask = SIF_PAGE | SIF_RANGE;
- BOOL bz = ::GetScrollInfo(wMain.GetID(), SB_VERT, &sci);
+ ::GetScrollInfo(wMain.GetID(), SB_VERT, &sci);
if ((sci.nMin != 0) || (sci.nMax != pdoc->LinesTotal()) ||
(sci.nPage != static_cast<unsigned int>(pdoc->LinesTotal() - MaxScrollPos() + 1)) ||
(sci.nPos != 0)) {
@@ -940,7 +941,7 @@ void ScintillaWin::ImeStartComposition() {
// The negative is to allow for leading
lf.lfHeight = -(abs(deviceHeight));
lf.lfWeight = vs.styles[styleHere].bold ? FW_BOLD : FW_NORMAL;
- lf.lfItalic = vs.styles[styleHere].italic ? 1 : 0;
+ lf.lfItalic = static_cast<BYTE>(vs.styles[styleHere].italic ? 1 : 0);
lf.lfCharSet = DEFAULT_CHARSET;
strcpy(lf.lfFaceName, vs.styles[styleHere].fontName);
@@ -992,7 +993,7 @@ void ScintillaWin::ScrollMessage(WPARAM wParam) {
sci.cbSize = sizeof(sci);
sci.fMask = SIF_ALL;
- BOOL b = ::GetScrollInfo(wMain.GetID(), SB_VERT, &sci);
+ ::GetScrollInfo(wMain.GetID(), SB_VERT, &sci);
//Platform::DebugPrintf("ScrollInfo %d mask=%x min=%d max=%d page=%d pos=%d track=%d\n", b,sci.fMask,
//sci.nMin, sci.nMax, sci.nPage, sci.nPos, sci.nTrackPos);