This commit is contained in:
Igor Pavlov
2010-11-02 00:00:00 +00:00
committed by Kornel Lesiński
parent 2eb60a0598
commit c65230d858
101 changed files with 4557 additions and 541 deletions
+2 -2
View File
@@ -103,7 +103,7 @@ bool IsDialogSizeOK(int xSize, int ySize)
void CDialog::NormalizeSize(bool fullNormalize)
{
RECT workRect;
GetWorkAreaRect(&workRect);
GetWorkAreaRect(&workRect);
int xSize = RECT_SIZE_X(workRect);
int ySize = RECT_SIZE_Y(workRect);
RECT rect;
@@ -135,7 +135,7 @@ void CDialog::NormalizeSize(bool fullNormalize)
void CDialog::NormalizePosition()
{
RECT workRect, rect;
GetWorkAreaRect(&workRect);
GetWorkAreaRect(&workRect);
GetWindowRect(&rect);
if (rect.bottom > workRect.bottom && rect.top > workRect.top)
Move(rect.left, workRect.top, RECT_SIZE_X(rect), RECT_SIZE_Y(rect), true);
+2
View File
@@ -3,6 +3,8 @@
#ifndef __WINDOWS_FILENAME_H
#define __WINDOWS_FILENAME_H
#include "../../C/Types.h"
#include "../Common/MyString.h"
namespace NWindows {
+1 -1
View File
@@ -218,7 +218,7 @@ void CPropVariant::InternalCopy(const PROPVARIANT *pSrc)
int CPropVariant::Compare(const CPropVariant &a)
{
if (vt != a.vt)
return 0; // it's bug case
return MyCompare(vt, a.vt);
switch (vt)
{
case VT_EMPTY: return 0;
+3 -2
View File
@@ -53,13 +53,14 @@ AString FlagsToString(const CUInt32PCharPair *pairs, unsigned num, UInt32 flags)
for (unsigned i = 0; i < num; i++)
{
const CUInt32PCharPair &p = pairs[i];
if ((flags & p.Value) != 0)
UInt32 flag = (UInt32)1 << (unsigned)p.Value;
if ((flags & flag) != 0)
{
if (!s.IsEmpty())
s += ' ';
s += p.Name;
}
flags &= ~p.Value;
flags &= ~flag;
}
if (flags != 0)
{