mirror of
https://github.com/Xevion/easy7zip.git
synced 2026-01-31 08:24:11 -06:00
9.18
This commit is contained in:
committed by
Kornel Lesiński
parent
2eb60a0598
commit
c65230d858
@@ -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);
|
||||
|
||||
@@ -3,6 +3,8 @@
|
||||
#ifndef __WINDOWS_FILENAME_H
|
||||
#define __WINDOWS_FILENAME_H
|
||||
|
||||
#include "../../C/Types.h"
|
||||
|
||||
#include "../Common/MyString.h"
|
||||
|
||||
namespace NWindows {
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user