Hello everyone,
I am very interested in how modern Windows software is written in C++ nowadays? I asked my friend who had worked on Windows software and he told that last things he worked with were MFC and then WTL. He said that MFC is no longer anything modern but WTL is still used but he didn't know much more. He also said that WTL wa...
I developed and initially tested a dialog-based WTL application on a Windows 2003 system. It contains a tabbed pane with a couple of child dialogs, among other things. During initial testing on Win2003 everything was fine, but when I ran it on a WinPE system today (the target platform) I noticed that the dialog size was all out of whack....
I'm creating a custom window in WTL to hold video controls for a DirectShow app.
I've created a set of check boxes that I wish to behave in the "push like" manner (BS_PUSHLIKE). They appear defined in the .rc file for the dialog like so:
CONTROL "",IDC_VID1,"Button",BS_AUTOCHECKBOX | BS_BITMAP | BS_PUSHLIKE | WS_GROUP | WS_T...
I try to write a owner draw listbox with WTL. My code looks like this
template
class ATL_NO_VTABLE CMyListBoxImpl :
public CWindowImpl,
public COwnerDraw
{
...
BEGIN_MSG_MAP(CMyListBoxImpl)
MESSAGE_HANDLER(WM_CREATE, OnCreate)
MESSAGE_HANDLER(WM_DESTROY, OnDestroy)
MESSAGE_HANDLER(WM_ERASEBKGND, OnEraseBackground)
...
I have a Visual Studio 2008 WTL 8.1 project that uses an ActiveX HTML dialog control. Unfortunately, when the view is created, VS2008 freezes and the application dialog never appears.
The callstack just before the lockup looks like this:
ax_test.exe!WTL::CFrameWindowImplBase<ATL::CWindow,ATL::CWinTraits<114229248,262400> >::Create(HWND...
Hi,
Many application are using multi-top-level windows.
One of the good example is for layered window: if application need a real transparent control, the best way under MS windows is to use layered window(win32 programming, no WPF). But Layered Window must be top-level window.
The problem happens during you restore a minimized applicat...
Hi,
According to MSDN, WM_SIZE should be sent to window when window is minimized or restored.
But my application window, which is WTL CDialogImpl never get WM_SIZE when minimize or restore.
I use spy++ to check on it, I can get WM_SYSCOMMAND, WM_WINDOWPOSCHANING, WM_ACTIVE, WM_ACTIVEAPP etc, but no WM_SIZE.
I checked some other WTL ...