|
WM_NCHITTEST looks ok but the system has the wrong window rect as you know.
What's going on in the WM_NCCALCSIZE handler?
|
|
|
|
|
I found the problem. Before the WM_NCPAINT handler does any drawing, it passes the required size (from GetWindowRect) for the required images, which in turns builds the regions. I had left an old WM_SIZE handler in there which was effectivly resizing/positioning the regions to the client area. So even though the borders drew ok, their regions were being changed before a hittest.
|
|
|
|
|
waldermort wrote: I found the problem
Awesome
|
|
|
|
|
I created a MFC Extended dll with CView,It works fine ,but when I created a ActiveX control in View ,It Appended an assert error! I could not find the problem, help me!
-----
ZESON
|
|
|
|
|
Hi All,
In Visual Studio 6.0 ATL Windows Service program , I can edit _twinmain() function and i can do coding inside _twinmain() function.
But In Visual Studio .NET 2003 ATL Windows Service , I can not edit source inside _tWinmain() function.
Why this is happening?
I want to edit source of _tWinmain() in VS .NET 2003.
How do i do this ?
Thanks in Advance.
|
|
|
|
|
Dear C++ Gurus,
I need to read a string from console without echo. I need to use C++ not C. In C there are functions, but couldn't find a similer in C++. Please help.
Regards,
Jijo.
________________________________
Yesterday is history,
Tomorrow is a mystery,
But today is a present.
|
|
|
|
|
Jijoraj wrote: ...read a string from console without echo.
What exactly does this mean?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
I assume when keys are pressed he wants to read them in and process them without them being displayed on the screen.
Steve
|
|
|
|
|
If that is so, then getch() is a possibility.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
How to use this WNetAddConnection in the client side so that no program should be installed in the server side and the data should be transferred successfully. Plz give me a quick reply for this
|
|
|
|
|
Hi,
This function should be use only to provide compatibility with 16-bit apps. In win32 you should use WNetAddConnection2 or WNetAddConnection3.
DWORD WNetAddConnection2(
LPNETRESOURCE lpNetResource,
LPCTSTR lpPassword,
LPCTSTR lpUsername,
DWORD dwFlags
);
It can be e.g.:
NETRESOURCE nrNetRC = { '\0' };
nrNetRC.lpRemoteName = _T( "\\\\Machinename" );
DWORD dwFlags = NULL;
WNetAddConnection2( &nrNetRC, sPassword, sUserName, dwFlags );
But I'm wondering what exactly do you mean by "data should be transferred" - I mean what kind of data ?
-----------
Mila
|
|
|
|
|
Hi,
I want to place dynamically two CButtons on a web browser control in my GUI.
But it appears always as disabled.
how can I solve this issue..?
|
|
|
|
|
The best way is to simply add two <input> elements on the HTML page and reference window.external from their onclick handlers -- assuming I understand your intent properly.
Steve
|
|
|
|
|
|
Hi
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
|
Bye
|
|
|
|
|
hi i want to change the color of the tab control
i am using the following code that work fine withe other objects like edit box and etc but not work fine with tab control
here IDC_RESPONSES is the ID of Tab Control
HBRUSH CResponsesDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);
if(pWnd->GetDlgCtrlID() == IDC_RESPONSES)
{
pDC->SetBkColor(RGB(0,0,0));
}
return hbr;
}
kindly help me in this porblem
|
|
|
|
|
|
There are many library to render jpeg from memory.
But which is the fastest?
OleLoadPicture is simple but not fast enough.
StretchDIBits may not be supported by some computers.
|
|
|
|
|
|
need to design a server & intercept info in the dll to interact with a database.
is there a way to do that? for instance, where can i trap packets sent by a web user to the server? any modification in the dll required?
|
|
|
|
|
hello, i want you help, how can i let a windows gui program run in background, don't tell me use ShowWindow(SW_HIDE), i have tried that one, it's not a good method.
There's such a function, SetForegroundWindow(), can i use SetBackgourndWindow...
And several monthes ago, when i telnet to another pc, and run Notepad.exe in that computer, i found Notepad.exe is really in that computer's background, i want that effect also, can anybody help me.
Thanks very much.
|
|
|
|
|
Have a look at the BackgroundWorker class. That should be what you need.
|
|
|
|
|
I hope a standard win32 api or such functions, not such a component.
But thanks for your help.
|
|
|
|