Click here to Skip to main content
15,917,060 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Question about CString Format [modified] Pin
David Crow18-Apr-08 5:30
David Crow18-Apr-08 5:30 
GeneralRe: Question about CString Format Pin
CPallini18-Apr-08 5:35
mveCPallini18-Apr-08 5:35 
QuestionRe: Question about CString Format Pin
David Crow18-Apr-08 5:43
David Crow18-Apr-08 5:43 
GeneralRe: Question about CString Format Pin
KellyR18-Apr-08 5:50
KellyR18-Apr-08 5:50 
GeneralRe: Question about CString Format Pin
David Crow18-Apr-08 5:57
David Crow18-Apr-08 5:57 
GeneralRe: Question about CString Format Pin
CPallini18-Apr-08 6:32
mveCPallini18-Apr-08 6:32 
GeneralRe: Question about CString Format Pin
David Crow18-Apr-08 7:00
David Crow18-Apr-08 7:00 
GeneralRe: Question about CString Format Pin
CPallini18-Apr-08 5:31
mveCPallini18-Apr-08 5:31 
AnswerRe: Question about CString Format Pin
KellyR18-Apr-08 5:49
KellyR18-Apr-08 5:49 
QuestionHow to use the functions from DLL files Pin
pl_kode18-Apr-08 5:03
pl_kode18-Apr-08 5:03 
GeneralRe: How to use the functions from DLL files Pin
Hamid_RT18-Apr-08 5:12
Hamid_RT18-Apr-08 5:12 
GeneralRe: How to use the functions from DLL files Pin
CPallini18-Apr-08 5:26
mveCPallini18-Apr-08 5:26 
QuestionHow to get all controls of current dialog? Pin
mehmetned18-Apr-08 4:38
mehmetned18-Apr-08 4:38 
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 

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.