summaryrefslogtreecommitdiff
path: root/plugins/Clist_nicer/coolsb
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-06-19 14:52:53 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-06-19 14:52:53 +0000
commit54dec7a74c313ee61437386bd667f9a7653351fd (patch)
tree81aaf9bf469838735392a81ed3edfc3b3bd7481f /plugins/Clist_nicer/coolsb
parent03dd87df0b288fd0f0f512fb0bbff29e8c00f366 (diff)
fixes for the options page translation
git-svn-id: http://svn.miranda-ng.org/main/trunk@479 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_nicer/coolsb')
-rw-r--r--plugins/Clist_nicer/coolsb/coolsblib.cpp8
-rw-r--r--plugins/Clist_nicer/coolsb/coolscroll.cpp10
2 files changed, 9 insertions, 9 deletions
diff --git a/plugins/Clist_nicer/coolsb/coolsblib.cpp b/plugins/Clist_nicer/coolsb/coolsblib.cpp
index 3a90d0d070..42f74c4ca0 100644
--- a/plugins/Clist_nicer/coolsb/coolsblib.cpp
+++ b/plugins/Clist_nicer/coolsb/coolsblib.cpp
@@ -632,7 +632,7 @@ BOOL WINAPI CoolSB_InsertButton(HWND hwnd, int wSBflags, UINT nPos, SCROLLBUT *p
else
{
//insert space for the button at the specified position
- for(i = sbar->nButtons; i > nPos; i--)
+ for (i = sbar->nButtons; i > nPos; i--)
{
sbar->sbButtons[i] = sbar->sbButtons[i-1];
}
@@ -718,7 +718,7 @@ BOOL WINAPI CoolSB_InsertButton(HWND hwnd, int wSBflags, UINT nPos, SCROLLBUT *p
static SCROLLBUT *GetButtonFromId(SCROLLBAR *sbar, UINT uCmdId)
{
int i;
- for(i = 0; i < sbar->nButtons; i++)
+ for (i = 0; i < sbar->nButtons; i++)
{
if(sbar->sbButtons[i].uCmdId == uCmdId)
return &sbar->sbButtons[i];
@@ -798,7 +798,7 @@ BOOL WINAPI CoolSB_RemoveButton(HWND hwnd, int wSBflags, UINT uItem, BOOL fByCmd
else if(fByCmd == TRUE)
{
//find the button with the specified command id
- for(i = 0; i < sbar->nButtons; i++)
+ for (i = 0; i < sbar->nButtons; i++)
{
if(sbar->sbButtons[i].uCmdId == uItem)
{
@@ -813,7 +813,7 @@ BOOL WINAPI CoolSB_RemoveButton(HWND hwnd, int wSBflags, UINT uItem, BOOL fByCmd
}
//remove the button!
- for(i = uItem; i < sbar->nButtons - 1; i++)
+ for (i = uItem; i < sbar->nButtons - 1; i++)
{
sbar->sbButtons[i] = sbar->sbButtons[i+1];
}
diff --git a/plugins/Clist_nicer/coolsb/coolscroll.cpp b/plugins/Clist_nicer/coolsb/coolscroll.cpp
index 7f4dbf95b5..882b91e8fd 100644
--- a/plugins/Clist_nicer/coolsb/coolscroll.cpp
+++ b/plugins/Clist_nicer/coolsb/coolscroll.cpp
@@ -513,7 +513,7 @@ static int GetButtonSize(SCROLLBAR *sbar, HWND hwnd, UINT uBeforeAfter)
SCROLLBUT *sbut = sbar->sbButtons;
- for(i = 0; i < sbar->nButtons; i++)
+ for (i = 0; i < sbar->nButtons; i++)
{
//only consider those buttons on the same side as nTopBottom says
if(sbut[i].uPlacement == uBeforeAfter)
@@ -1340,7 +1340,7 @@ static LRESULT DrawHorzButtons(SCROLLBAR *sbar, HDC hdc, const RECT *rect, int l
xposl = rect->left - sbar->nButSizeBefore;
xposr = rect->right;
- for(i = 0; i < sbar->nButtons; i++)
+ for (i = 0; i < sbar->nButtons; i++)
{
if ((leftright & SBBP_LEFT) && sbut[i].uPlacement == SBBP_LEFT)
{
@@ -1776,7 +1776,7 @@ static UINT GetHorzButtonFromPt(SCROLLBAR *sb, RECT *rect, POINT pt, BOOL fRetur
if(sb->fButVisibleAfter)
rightpos -= sb->nButSizeAfter;
- for(i = 0; i < sb->nButtons; i++)
+ for (i = 0; i < sb->nButtons; i++)
{
if(sb->fButVisibleBefore && sbut[i].uPlacement == SBBP_LEFT)
{
@@ -1868,7 +1868,7 @@ static UINT GetHorzButtonRectFromId(SCROLLBAR *sb, RECT *rect, UINT index)
rightpos -= sb->nButSizeAfter;
//find the particular button in question
- for(i = 0; i < index; i++)
+ for (i = 0; i < index; i++)
{
if(sb->fButVisibleBefore && sbut[i].uPlacement == SBBP_LEFT)
{
@@ -2618,7 +2618,7 @@ static void ResizeButtonsToFit(SCROLLWND *sw, SCROLLBAR *sbar, HWND hwnd)
//restore any resizable buttons to their user-defined sizes,
//before shrinking them to fit. This means when we make the window
//bigger, the buttons will restore to their initial sizes
- for(i = 0; i < sbar->nButtons; i++)
+ for (i = 0; i < sbar->nButtons; i++)
{
sbut = &sbar->sbButtons[i];
if(sbut->uButType & SBBM_RESIZABLE)