Click here to Skip to main content
15,917,005 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
QuestionHow to change title text of dialog in a wtl project? Pin
freehawk4-Feb-04 14:57
freehawk4-Feb-04 14:57 
AnswerRe: How to change title text of dialog in a wtl project? Pin
_Magnus_5-Feb-04 0:12
_Magnus_5-Feb-04 0:12 
GeneralRe: How to change title text of dialog in a wtl project? Pin
freehawk5-Feb-04 13:44
freehawk5-Feb-04 13:44 
Generalgetting linking error Pin
ramyazm4-Feb-04 2:47
ramyazm4-Feb-04 2:47 
Questionhow to create a help file add to a wtl project? Pin
freehawk3-Feb-04 19:21
freehawk3-Feb-04 19:21 
AnswerRe: how to create a help file add to a wtl project? Pin
Douglas Troy6-Feb-04 4:32
Douglas Troy6-Feb-04 4:32 
GeneralLayered ATL Window Pin
macattack3-Feb-04 17:18
macattack3-Feb-04 17:18 
GeneralRe: Layered ATL Window Pin
Igor Vigdorchik7-Feb-04 19:15
Igor Vigdorchik7-Feb-04 19:15 
Try this:

typedef BOOL (__stdcall *PFUNCSETLAYEREDWINDOWATTR)(HWND, COLORREF, BYTE, DWORD);
PFUNCSETLAYEREDWINDOWATTR m_pfSetLayeredWindowAttributes;

HMODULE hUser32 = GetModuleHandle(_T("User32.dll"));
if (hUser32)
{
m_pfSetLayeredWindowAttributes =
(PFUNCSETLAYEREDWINDOWATTR)::GetProcAddress(hUser32, "SetLayeredWindowAttributes");
if (m_pfSetLayeredWindowAttributes)
{
::SetWindowLong(m_hWnd, GWL_EXSTYLE, GetWindowLong(GWL_EXSTYLE)^WS_EX_LAYERED);
// After the SetWindowLong call, the layered window will not become visible
// until the SetLayeredWindowAttributes function has been called for this window
m_pfSetLayeredWindowAttributes(m_hWnd, 0, (BYTE)255, LWA_ALPHA);
}
}

and then somewhere

// Sets the transparency of the window
void MakeTransparent(int nAlpha)
{
if (m_pfSetLayeredWindowAttributes)
m_pfSetLayeredWindowAttributes(m_hWnd, 0, (BYTE)nAlpha, LWA_ALPHA);
}
QuestionEvents and Threads Issue? Pin
Maverick3-Feb-04 5:52
Maverick3-Feb-04 5:52 
AnswerRe: Events and Threads Issue? Pin
Jörgen Sigvardsson5-Feb-04 8:11
Jörgen Sigvardsson5-Feb-04 8:11 
QuestionHow to set the forcus to a special place in a CEdit? Pin
freehawk2-Feb-04 17:02
freehawk2-Feb-04 17:02 
AnswerRe: How to set the forcus to a special place in a CEdit? Pin
valikac3-Feb-04 5:01
valikac3-Feb-04 5:01 
GeneralRe: How to set the forcus to a special place in a CEdit? Pin
freehawk3-Feb-04 19:25
freehawk3-Feb-04 19:25 
GeneralConnectionPoint and IDL Pin
gialli1-Feb-04 22:22
gialli1-Feb-04 22:22 
GeneralRe: ConnectionPoint and IDL Pin
Steve S1-Feb-04 23:43
Steve S1-Feb-04 23:43 
GeneralRe: ConnectionPoint and IDL Pin
gialli2-Feb-04 0:18
gialli2-Feb-04 0:18 
GeneralRe: ConnectionPoint and IDL Pin
Steve S2-Feb-04 2:30
Steve S2-Feb-04 2:30 
GeneralRe: ConnectionPoint and IDL Pin
gialli2-Feb-04 3:06
gialli2-Feb-04 3:06 
GeneralRe: ConnectionPoint and IDL Pin
Steve S2-Feb-04 4:20
Steve S2-Feb-04 4:20 
GeneralPrinting/Print Preview by WTL Pin
Nekronomykon1-Feb-04 14:28
Nekronomykon1-Feb-04 14:28 
Generalljkefsdf Pin
fishboyzyf77031730-Jan-04 17:31
fishboyzyf77031730-Jan-04 17:31 
GeneralThread safety of VS.NET STL Pin
User 988530-Jan-04 16:41
User 988530-Jan-04 16:41 
GeneralRe: Thread safety of VS.NET STL Pin
Joaquín M López Muñoz1-Feb-04 2:26
Joaquín M López Muñoz1-Feb-04 2:26 
GeneralRe: Thread safety of VS.NET STL Pin
User 98851-Feb-04 7:18
User 98851-Feb-04 7:18 
GeneralRe: Thread safety of VS.NET STL Pin
Jörgen Sigvardsson1-Feb-04 8:23
Jörgen Sigvardsson1-Feb-04 8: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.