Click here to Skip to main content
16,004,806 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionI have problem in Video Capture from web camera Pin
yaminisridaran18-Jul-07 1:56
yaminisridaran18-Jul-07 1:56 
QuestionRe: I have problem in Video Capture from web camera Pin
Mark Salsbery18-Jul-07 6:12
Mark Salsbery18-Jul-07 6:12 
QuestionChanging the Parent of ActiveX Control at runtime Pin
naveen.V18-Jul-07 1:41
naveen.V18-Jul-07 1:41 
Questionrestrict control being active by default Pin
kiranin18-Jul-07 1:05
kiranin18-Jul-07 1:05 
QuestionRe: restrict control being active by default Pin
David Crow18-Jul-07 2:39
David Crow18-Jul-07 2:39 
QuestionRe: restrict control being active by default Pin
Hamid_RT25-Jul-07 8:40
Hamid_RT25-Jul-07 8:40 
QuestionVista and caption bar Pin
jung-kreidler18-Jul-07 0:38
jung-kreidler18-Jul-07 0:38 
AnswerRe: Vista and caption bar Pin
Paresh Chitte18-Jul-07 19:36
Paresh Chitte18-Jul-07 19:36 
Code snippet

HMODULE m_themeLib = LoadLibrary(_T("UxTheme.dll"));


if(m_themeLib != NULL)
{
	HANDLE (__stdcall *pFNOPENTHEMEDATA)(HWND hwnd, LPCWSTR pszClassList);

	HRESULT(__stdcall *pDrawThemeBackground)(HANDLE hTheme, HDC hdc, int iPartId, int iStateId, const RECT *pRect, OPTIONAL const RECT *pClipRect);

	HRESULT (__stdcall *pFNCLOSETHEMEDATA)(HANDLE hTheme);

	//OpenThemeData function call
	(FARPROC&)pFNOPENTHEMEDATA =     GetProcAddress(m_themeLib, "OpenThemeData");

	HANDLE hTheme = 0;
	if(pFNOPENTHEMEDATA)
		hTheme = (pFNOPENTHEMEDATA)(wnd.m_hWnd, L"Window");

	//DrawThemeBackground function call
	(FARPROC&)pDrawThemeBackground = GetProcAddress(m_themeLib, "DrawThemeBackground");

	rc.left += 2;

	(pDrawThemeBackground)(hTheme, dc, WP_CLOSEBUTTON, CBS_NORMAL, &rc, 0);
	(pDrawThemeBackground)(hTheme, dc, WP_HELPBUTTON, HBS_NORMAL, &rc, 0);

	//CloseThemeData Function Call
	if(hTheme)
	{
		(FARPROC&)pFNCLOSETHEMEDATA = GetProcAddress(m_themeLib, "CloseThemeData");
		if(pFNCLOSETHEMEDATA)
			(pFNCLOSETHEMEDATA)(hTheme);
	}

if(m_themeLib)
        FreeLibrary(m_themeLib);


Regards,

Paresh.
QuestionAccess Violation. Pin
p_18-Jul-07 0:30
p_18-Jul-07 0:30 
AnswerRe: Access Violation. Pin
Cedric Moonen18-Jul-07 0:50
Cedric Moonen18-Jul-07 0:50 
GeneralRe: Access Violation. Pin
p_18-Jul-07 0:57
p_18-Jul-07 0:57 
GeneralRe: Access Violation. Pin
Cedric Moonen18-Jul-07 1:06
Cedric Moonen18-Jul-07 1:06 
GeneralRe: Access Violation. Pin
p_18-Jul-07 1:09
p_18-Jul-07 1:09 
GeneralRe: Access Violation. Pin
toxcct18-Jul-07 1:13
toxcct18-Jul-07 1:13 
GeneralRe: Access Violation. Pin
Cedric Moonen18-Jul-07 1:16
Cedric Moonen18-Jul-07 1:16 
GeneralRe: Access Violation. Pin
p_18-Jul-07 1:28
p_18-Jul-07 1:28 
GeneralRe: Access Violation. Pin
Cedric Moonen18-Jul-07 2:12
Cedric Moonen18-Jul-07 2:12 
GeneralRe: Access Violation. Pin
toxcct18-Jul-07 1:13
toxcct18-Jul-07 1:13 
QuestionRe: Access Violation. Pin
David Crow18-Jul-07 2:41
David Crow18-Jul-07 2:41 
Questionhelp with files Pin
josip cagalj17-Jul-07 23:53
josip cagalj17-Jul-07 23:53 
AnswerRe: help with files Pin
PravinSingh18-Jul-07 1:45
PravinSingh18-Jul-07 1:45 
AnswerRe: help with files Pin
David Crow18-Jul-07 2:44
David Crow18-Jul-07 2:44 
AnswerRe: help with files Pin
Hamid_RT25-Jul-07 8:30
Hamid_RT25-Jul-07 8:30 
QuestionSubclassing Issue Pin
LoveCPlusplus17-Jul-07 23:42
LoveCPlusplus17-Jul-07 23:42 
AnswerRe: Subclassing Issue Pin
Mike Dimmick18-Jul-07 2:53
Mike Dimmick18-Jul-07 2:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.