|
dib scanlines have always been buffered to 4 byte DWORD boundaries.
this is so that blit functions etc do not force the processor to do expensive address fixups caused by starting on an non 32bit aligned memory address. Somewhere in the win16 / win32 sdk documentation all this was documented at sometime in the past like the early 90's. this does not mean that the actual image width has to be a multiple of 4 and should not relate to image height at all.
|
|
|
|
|
Should, could, would...it's all the same to me. After four days of debugging sessions I found the answer to the problem, if the width and height of the bitmap are evenly divisible by four it will receive the bits in Windows 98, and although this does not apply to all bitmaps tested, I will make it a personal rule of thumb to keep this rule because neither I, or anyone else I have asked can find an answer, so I will go with what works. Thanks...
|
|
|
|
|
Hi
I have created a ActiveX toolbar with VC++ 6, that uses a drop down list control (simular to the IE Address bar), everything works fine except i can not Cut and Paste into the list control box? Our control is created at runtime.
Does any one know how to modify the MS C++ List control to allow Cut and Paste using shortcuts (Ctrl V)? or know of or can help me create on that will allow hot key cut and paste.
Thanks for any information.
Scott
|
|
|
|
|
One solution is to to handle the keydown message and process the control.
Kuphryn
|
|
|
|
|
kuphryn wrote:
One solution is to to handle the keydown message and process the control.
Do you have an example? I am not shure what you mean.
Thanks for any information
Scott
|
|
|
|
|
I am developing COM Server and am unable to debug as i am unable to compile as I get the error
: error C2065: 'DEBUG_NEW' : undeclared identifier
development is getting real tough without the debugger . Please help
|
|
|
|
|
You are probably using MFC and you probably removed
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
from beginning of the file.
|
|
|
|
|
I am programming in c and would like to know how I can find the location of my executable programatically. So if the executable is moved to a new location my program will know its current path.
Thanks,
SAK
|
|
|
|
|
One solution is GetModuleFileName(). Another solution is GetCurrentDirectory().
Kuphryn
|
|
|
|
|
Kuphryn,
This is exactly what I was looking for.
Thank you
|
|
|
|
|
|
Thanks for the help...much appreciated.
SAK
|
|
|
|
|
If you are just writing a simple console app, you can use argv[0].
--Dean
|
|
|
|
|
Dean,
Good information...Thanks
|
|
|
|
|
Except -- argv[0] does not return a fully-qualified path name if the .EXE is run from the same directory (from the current directory).
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
Santa Cruz Networks
|
|
|
|
|
1. MFC dialog app is created
2. 2nd modeless dialog is created with extended style WS_EX_APPWINDOW, it's then shown and updated. The parent is set to null or desktop with SetParent(NULL) or SetParent(GetDesktopWindow())
3. Main dialog window is minimized, and as it is, the taskbar space for the non-modal disappears and the non-modal dialog is also minimized
4. NO, i repeat NO messages at all are sent to the non-modal dialog such as you would expect (ex. WM_SIZE message).
My Question is simple, what the heck is going on? How does one stop MFC from stealing the non-modal dialog's messages and reducing it automatically and removing it's taskbar space?
So far no one has been able to answer this
hey
|
|
|
|
|
i have a problem with maximizing an MDI-Child window. I tried to use the ShowWindow(SW_MAXIMIZE) method (in OnItitalUpdate()), but nothing happend....
|
|
|
|
|
In your child frame class, add the following override:
BOOL CChildFrame::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
if( !CMDIChildWnd::PreCreateWindow(cs) )
return FALSE;
cs.style = WS_CHILD | WS_VISIBLE | WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU
| FWS_ADDTOTITLE | WS_MINIMIZEBOX | WS_MAXIMIZEBOX | WS_THICKFRAME;
return TRUE;
}
|
|
|
|
|
Hey basementman, i tried your recommendation - no success - nothing happend
|
|
|
|
|
Perhaps i should mention that I use CFormView as BaseClass.
|
|
|
|
|
To Maximize a MDI-Child on Opening.
BOOL CChildFrame::PreCreateWindow(CREATESTRUCT& cs)<br />
{<br />
if( !CBCGPMDIChildWnd::PreCreateWindow(cs) )<br />
return FALSE;<br />
cs.style |= WS_MAXIMIZE|WS_VISIBLE;<br />
return TRUE;<br />
}
And then, don't forgert to remove ResizeParentToFit() in OnInitalUpdate() from your CFormView based Class!
Regards
Der Albert
|
|
|
|
|
Put ShowWindow(SW_SHOWMAXIMIZED); in CChildFrame::PreCreateWindow()
in CChildFrame::OnCreate(...)
Pfff . time to go home ...
|
|
|
|
|
Sorry, copied the wrong block.... THis is the one:
void CChildFrame::ActivateFrame(int nCmdShow)
{
// TODO: Modify this function to change how the frame is activated.
nCmdShow = SW_SHOWMAXIMIZED;
CMDIChildWnd::ActivateFrame(nCmdShow);
}
|
|
|
|
|
hi
Haw can I get status of socket in process, while closing, connecting and so on?
GetTcpTable return MIB_TCP_STATE_ESTAB always or more often than not
Thank you
|
|
|
|
|
Are you referring to an IP statistics? One solution is GetIpStatistics().
Kuphryn
|
|
|
|