Click here to Skip to main content
15,888,610 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to get all controls of current dialog? Pin
David Crow18-Apr-08 4:49
David Crow18-Apr-08 4:49 
AnswerRe: How to get all controls of current dialog? Pin
Hamid_RT18-Apr-08 5:14
Hamid_RT18-Apr-08 5:14 
GeneralRe: How to get all controls of current dialog? Pin
mehmetned21-Apr-08 2:58
mehmetned21-Apr-08 2:58 
GeneralRe: How to get all controls of current dialog? Pin
Hamid_RT21-Apr-08 19:27
Hamid_RT21-Apr-08 19:27 
GeneralRe: How to get all controls of current dialog? Pin
ThatsAlok30-Jun-09 23:28
ThatsAlok30-Jun-09 23:28 
GeneralBriefcase shell context menu Pin
john563218-Apr-08 3:53
john563218-Apr-08 3:53 
GeneralRe: Briefcase shell context menu Pin
Iain Clarke, Warrior Programmer18-Apr-08 4:05
Iain Clarke, Warrior Programmer18-Apr-08 4:05 
GeneralWH_CBT Hook - Transparent Menues Pin
Rahvin18-Apr-08 3:36
Rahvin18-Apr-08 3:36 
Hi!

I'm trying to make all DropDown-Menus transparent, using a WH_CBT hook.
Unfortunately it does not work Wink | ;) ...

Here is the Hookprocedure:
<br />
LRESULT CALLBACK TransWindowProc(int nCode, WPARAM wParam, LPARAM lParam)<br />
{<br />
   if (nCode < 0)<br />
      return CallNextHookEx(g_hTransHook, nCode, wParam, lParam);<br />
<br />
  <br />
<br />
   if (nCode == HCBT_CREATEWND)<br />
   {<br />
<br />
				HWND handle = (HWND)wParam;<br />
<br />
                                LPWSTR szClass = new WCHAR[128];<br />
				GetClassName(handle, szClass, 127);<br />
				<br />
<br />
<br />
				if (lstrcmpi(szClass, TEXT("#32768")) == 0)<br />
				{<br />
<br />
					SetWindowLong(handle, GWL_EXSTYLE, GetWindowLong(handle, GWL_EXSTYLE) | WS_EX_LAYERED);<br />
					SetLayeredWindowAttributes(handle, 0, 200, LWA_ALPHA);<br />
<br />
				}<br />
   }<br />
   return CallNextHookEx(g_hTransHook, nCode, wParam, lParam);<br />
}<br />


The hook itself is in a dll and is installed correctly. The if-statement is entered, but no transparency is set.
Can anybody please help Frown | :( ?
Questionconst issue... [modified] Pin
paulstandard18-Apr-08 3:29
paulstandard18-Apr-08 3:29 
GeneralRe: const issue... Pin
David Crow18-Apr-08 4:47
David Crow18-Apr-08 4:47 
GeneralRe: const issue... Pin
paulstandard18-Apr-08 5:01
paulstandard18-Apr-08 5:01 
GeneralRe: const issue... Pin
Matthew Faithfull18-Apr-08 6:49
Matthew Faithfull18-Apr-08 6:49 
GeneralRe: const issue... Pin
CPallini18-Apr-08 9:10
mveCPallini18-Apr-08 9:10 
Generalthat answers problem 2...thanks Mathew [modified] Pin
paulstandard18-Apr-08 9:56
paulstandard18-Apr-08 9:56 
Generalcause of problem one ... Pin
paulstandard18-Apr-08 10:35
paulstandard18-Apr-08 10:35 
QuestionHow to get rid of these errors [modified] Pin
pl_kode18-Apr-08 3:25
pl_kode18-Apr-08 3:25 
GeneralRe: How to get rid of these errors Pin
David Crow18-Apr-08 4:01
David Crow18-Apr-08 4:01 
QuestionRe: How to get rid of these errors Pin
CPallini18-Apr-08 4:02
mveCPallini18-Apr-08 4:02 
GeneralRe: How to get rid of these errors Pin
pl_kode18-Apr-08 4:24
pl_kode18-Apr-08 4:24 
QuestionRe: How to get rid of these errors Pin
David Crow18-Apr-08 4:43
David Crow18-Apr-08 4:43 
GeneralRe: How to get rid of these errors Pin
pl_kode18-Apr-08 5:00
pl_kode18-Apr-08 5:00 
QuestionRe: How to get rid of these errors Pin
David Crow18-Apr-08 5:07
David Crow18-Apr-08 5:07 
GeneralRe: How to get rid of these errors Pin
Iain Clarke, Warrior Programmer18-Apr-08 4:10
Iain Clarke, Warrior Programmer18-Apr-08 4:10 
QuestionMultiGraph Programming in VC++ Pin
Andy Rama18-Apr-08 2:40
Andy Rama18-Apr-08 2:40 
QuestionHow can I read the attributes of files? Pin
ritz123418-Apr-08 2:23
ritz123418-Apr-08 2:23 

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.