Click here to Skip to main content
15,886,059 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Windows multimedia or DirectSound - opinions wanted Pin
Code-o-mat18-Apr-10 21:37
Code-o-mat18-Apr-10 21:37 
QuestionCurious [Solved] Pin
Gwenio18-Apr-10 10:54
Gwenio18-Apr-10 10:54 
AnswerRe: Curious Pin
Stephen Hewitt18-Apr-10 18:28
Stephen Hewitt18-Apr-10 18:28 
GeneralRe: Curious Pin
Gwenio19-Apr-10 10:54
Gwenio19-Apr-10 10:54 
AnswerRe: Curious Pin
Richard MacCutchan19-Apr-10 1:16
mveRichard MacCutchan19-Apr-10 1:16 
GeneralRe: Curious Pin
Gwenio19-Apr-10 10:49
Gwenio19-Apr-10 10:49 
GeneralRe: Curious Pin
Richard MacCutchan19-Apr-10 11:05
mveRichard MacCutchan19-Apr-10 11:05 
GeneralRe: Curious Pin
Gwenio19-Apr-10 11:38
Gwenio19-Apr-10 11:38 
RECT r;
x -= ::GetSystemMetrics(SM_CXFIXEDFRAME);
y -= ::GetSystemMetrics(SM_CYCAPTION)+::GetSystemMetrics(SM_CYFIXEDFRAME);
r.right = width;
r.bottom = height;
AdjustWindowRect(&r,0,0);
obj.handle = CreateWindowExA(WS_EX_TRANSPARENT|WS_EX_TOPMOST,"CONTEXT",title,0,x,y,width,height,0,0,::GetModuleHandle(0),0);


The WndProc associated with it is crafted to make it as though the non-client area does not exist; it is not drawn, it does not recieve input, hit tests return true only if the point is inside the client area, and WM_NCCALCSIZE returns WVR_VALIDRECTS|WVR_REDRAW (for now, I will do some custom checking later).

For getting the size and position, I use GetClientArea, as the client is effectivly the entire window. The window is filled with a rectangle of its width and height when redrawing. Looking it over it might be that I should use SM_CXBORDER insead of SM_CXFIXEDFRAME, but that would not account for all the missing space.
GeneralRe: Curious Pin
Richard MacCutchan19-Apr-10 12:28
mveRichard MacCutchan19-Apr-10 12:28 
GeneralRe: Curious Pin
Gwenio19-Apr-10 13:13
Gwenio19-Apr-10 13:13 
GeneralRe: Curious Pin
Richard MacCutchan20-Apr-10 1:16
mveRichard MacCutchan20-Apr-10 1:16 
GeneralRe: Curious Pin
Stephen Hewitt19-Apr-10 13:54
Stephen Hewitt19-Apr-10 13:54 
GeneralRe: Curious Pin
Gwenio19-Apr-10 14:02
Gwenio19-Apr-10 14:02 
Questionwchar_t / C++ Pin
Fareed Rizkalla18-Apr-10 9:19
Fareed Rizkalla18-Apr-10 9:19 
AnswerRe: wchar_t / C++ Pin
Chris Losinger18-Apr-10 9:51
professionalChris Losinger18-Apr-10 9:51 
AnswerRe: wchar_t / C++ Pin
Richard MacCutchan18-Apr-10 11:09
mveRichard MacCutchan18-Apr-10 11:09 
QuestionWinSock 2 / Win32 Pin
Fareed Rizkalla18-Apr-10 9:15
Fareed Rizkalla18-Apr-10 9:15 
AnswerRe: WinSock 2 / Win32 Pin
Richard Andrew x6418-Apr-10 13:33
professionalRichard Andrew x6418-Apr-10 13:33 
AnswerRe: WinSock 2 / Win32 [modified] Pin
Moak18-Apr-10 20:21
Moak18-Apr-10 20:21 
GeneralRe: WinSock 2 / Win32 Pin
Fareed Rizkalla19-Apr-10 3:10
Fareed Rizkalla19-Apr-10 3:10 
GeneralRe: WinSock 2 / Win32 Pin
Moak19-Apr-10 4:09
Moak19-Apr-10 4:09 
GeneralRe: WinSock 2 / Win32 Pin
Spawn@Melmac19-Apr-10 4:27
Spawn@Melmac19-Apr-10 4:27 
GeneralRe: WinSock 2 / Win32 Pin
Fareed Rizkalla4-May-10 21:02
Fareed Rizkalla4-May-10 21:02 
GeneralRe: WinSock 2 / Win32 Pin
Spawn@Melmac5-May-10 0:13
Spawn@Melmac5-May-10 0:13 
Questionprevious next button to change pictures Pin
taouki18-Apr-10 7:04
taouki18-Apr-10 7:04 

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.