diff options
author | Igor Pavlov <ipavlov@users.sourceforge.net> | 2008-08-19 04:00:00 +0400 |
---|---|---|
committer | Kornel LesiĆski <kornel@geekhood.net> | 2016-05-28 02:15:57 +0300 |
commit | c10e6b16f6d5484ed896b2c614cb7fb77f336d24 (patch) | |
tree | f7a2ac132f883d95c2cf28ab01d58963de1ee811 /CPP/Windows/Control | |
parent | 173c07e166fdf6fcd20f18ea73008f1b628945df (diff) |
4.60 beta
Diffstat (limited to 'CPP/Windows/Control')
-rwxr-xr-x | CPP/Windows/Control/ImageList.h | 4 | ||||
-rwxr-xr-x | CPP/Windows/Control/Window2.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/CPP/Windows/Control/ImageList.h b/CPP/Windows/Control/ImageList.h index 8a0862e1..791c96fd 100755 --- a/CPP/Windows/Control/ImageList.h +++ b/CPP/Windows/Control/ImageList.h @@ -16,7 +16,7 @@ public: CImageList(): m_Object(NULL) {} bool Attach(HIMAGELIST imageList) { - if(imageList == NULL) + if (imageList == NULL) return false; m_Object = imageList; return true; @@ -33,7 +33,7 @@ public: { HIMAGELIST a = ImageList_Create(width, height, flags, initialNumber, grow); - if(a == NULL) + if (a == NULL) return false; return Attach(a); } diff --git a/CPP/Windows/Control/Window2.cpp b/CPP/Windows/Control/Window2.cpp index 3fcaa1ab..3900f649 100755 --- a/CPP/Windows/Control/Window2.cpp +++ b/CPP/Windows/Control/Window2.cpp @@ -49,7 +49,7 @@ bool CWindow2::CreateEx(DWORD exStyle, LPCTSTR className, HINSTANCE instance) { WNDCLASS windowClass; - if(!::GetClassInfo(instance, className, &windowClass)) + if (!::GetClassInfo(instance, className, &windowClass)) { // windowClass.style = CS_HREDRAW | CS_VREDRAW; windowClass.style = 0; @@ -80,7 +80,7 @@ bool CWindow2::CreateEx(DWORD exStyle, LPCWSTR className, HINSTANCE instance) { bool needRegister; - if(g_IsNT) + if (g_IsNT) { WNDCLASSW windowClass; needRegister = ::GetClassInfoW(instance, className, &windowClass) == 0; |