Click here to Skip to main content
12,293,322 members (53,274 online)
Click here to Skip to main content

Stats

636.3K views
27.7K downloads
337 bookmarked
Posted

Cool, Semi-transparent and Shaped Dialogs with Standard Controls for Windows 2000 and Above

, 28 Sep 2012 CPOL
This article tries to find a way to show Windows standard controls on layered windows. Provides both Native MFC and WinForms source code.
GdiPlus.dll
background.png
Microsoft.VC90.ATL.manifest
Microsoft.VC90.CRT.manifest
Microsoft.VC90.MFC.manifest
SemiTransparentDialogWithStandardCtrls.exe
ImgDlgSample.suo
bin
bg.png
ImgDlgSample.exe
Properties
bg.png
ImgDlgSample.exe
Resources
DemoDlg1.png
DemoDlgBg2.png
Src
background.png
Microsoft.VC90.ATL.manifest
Microsoft.VC90.CRT.manifest
Microsoft.VC90.MFC.manifest
SemiTransparentDialogWithStandardCtrls
res
bg.png
bg2.png
SemiTransparentDialogWithStandardCtrls.ico
Src
LayerDlgWithCtrls
LayerDlgWithCtrls.dsp
res
bg.png
LayerDlgWithCtrls.ico
Src
lib
GdiPlus.lib
LayerDlgWithCtrls.dsw
GdiPlus.dll
inc
#pragma once

#ifndef ATLASSERT
#define ATLASSERT	ASSERT
#endif

class CUtility
{
public:
	static CString GetModulePath(HMODULE hModule = NULL);

	static BOOL IsFileExist(LPCTSTR lpszFilePath);

	static BOOL ExtractResourceToFile( LPCTSTR lpszType
									, UINT nResID
									, LPCTSTR lpszFilename
									, HMODULE hModule
									);

	static Image * LoadImage( UINT nID, LPCTSTR lpszType, HINSTANCE hInstance = NULL);
};

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Jerry.Wang
Team Leader
China China
Jerry is from China. He was captivated by computer programming since 13 years old when first time played with Q-Basic.


  • Windows / Linux & C++
  • iOS & Obj-C
  • .Net & C#
  • Flex/Flash & ActionScript
  • HTML / CSS / Javascript
  • Gaming Server programming / video, audio processing / image & graphics

Contact: vcer(at)qq.com
Chinese Blog: http://blog.csdn.net/wangjia184

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.160518.1 | Last Updated 28 Sep 2012
Article Copyright 2009 by Jerry.Wang
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid