Updated CArchive and CStringT.
Updated the documentation for CCriticalSection and CThreadLock.
Hi Daniel, Yes there was a bug introduced in the previous update to the code in CTaskDialog::SetFooterIcon in the area you mentioned. That issue has been address in the latest code update. You can download a snapshot of the latest code from the Code section here on SourceForge. Best regards, David
Hi Daniel, I like your suggestion of adding the TDF_POSITION_RELATIVE_TO_WINDOW flag to the TaskDialogBox function. With this flag, the TaskDialogBox function emulates the behaviour of MessageBox more precisely. I've updated the TaskDialogBox function accordingly. You can download the latest code snapshot from the Code section here on SourceForge. There is nothing wrong with "hacking" the Win32++ library if that's what you choose to do. It's just that it might be an inconvenience when it comes time...
Updated CTaskDialog and TaskDialogBox.
Hi David, would it be possible to let TaskDialogBox accept user flags for direct customization (to avoid indirect CTaskDialog::SetOptions)? Currently I hacked: tc.dwFlags = TDF_POSITION_RELATIVE_TO_WINDOW; but was thinking that would be nice if the user can pass a it as an argument... Thanks, Daniel
Hi David, TaskDialog samples calls SetFooterIcon(TD_INFORMATION_ICON) and always uses FillString on it, which then fails for this example in my tests. Below works for me, but maybe you find better solution, thanks! // MAKEINTRESOURCE values, including the predefined Task Dialog icon // constants, are encoded integer identifiers rather than string pointers. if (footerIcon == nullptr || IS_INTRESOURCE(footerIcon)) { m_footerIconName.Empty(); m_tc.pszFooterIcon = footerIcon; } else { m_footerIconName...
This is minor and not sure if repro on all situations. I did build it with MinGW in Windows 10, and when opened from "parent" Explorer window, and then closed, the Explorer move behind the "grandparent", as shown in the images...
Updated DialogTemplate.
Updated CToolbar::GetMaxSize.
Updated Project files
Updated Project Files
Updated Project Files.
Hi Daniel, Thanks for bringing this to my attention. I've addressed this issue in the latest code update. You can download the latest code snapshot from the code section here on SourceForge, or from GitHub. The same code updates have been made to both repositories. Best regards, David
Fixed CToolBar::SetButtonText.
Fixed CStatusBar::SetPartText.
Hi David, I just tested with almost latest 790bef88239920c7545110650aca010f2af96191 commit from github, Release-build with VS2022 on Win10x64. when Maximize MDI, the min/max/close buttons are not shown until Alt is pressed when pressing Alt an icon appears overlapping the File menu restoring MDI doesn't remove the min/max/close buttons until Alt is pressed Thanks, Daniel
Added TestCArchive Unit Test.
Updated CArchive and CDialog.
Updated the message handling of WM_NCDESTROY for windows, dialogs and propertysheets.
Hi David, This helps a lot. I was not shure that the WndProcDefault is always called. Udo
Hi Udo, In Win32++ all unhandled messages for a window should get processed by CWnd::WndProcDefault. That will happen automatically if the class that inherits from CWnd has no WndProc function. It also happens automatically if the class has a WndProc function, and that function passes unhandled messages to WndProcDefault as shown in the samples. All the window controls wrapped by Win32++ (including ListView and TreeView) already do this for us automatically. If we override CListView or CTreeView,...
Hi David, This position should work too. I added the fix in StaticWindowProc because it is the last pace in the WinProc handler chain. For subclassed controls (Listiew, Treeview?) it is maybe necessary to call the FinalWindowProc before Cleanup, but i am not shure. Thank you for the bugfix. Best regards, Udo
Hi Udo, Thanks for bring this to my attention. I've addressed both issues in the latest SVN update. This is the code that has been added to CWnd::WndProcDefault to close child windows: case WM_NCDESTROY: { Cleanup(); return 0; } You can download the latest code snapshot from the Code section here on SourceForge. Best regards, David
Updated CWnd, common dialogs, CSocket and CThreadT.
Hi David, When creating a window the hwnd is added to the CWnd map in CWnd::StaticWindowProc when the first window message is received. The linking between the CWnd and the handle is removed when WM_CLOSE is received (OnClose() => Destroy() => ::DestroyWindow() => WM_DESTROY => WM_NCDESTROY) Sometimes child windows get implicitly destroyed when the parent is destroyed. I added a patch to catch this case: // All CWnd windows direct their messages here. This function redirects the // message to the...
Support update for library files and samples.
Updated CCriticalSection and CThreadLock
Updated CFrameT<T>::AddMenuIcon and CTab::AddTabPage
Updated FrameEx sample. Removed CWebBrowser.
Updated CPoint, CRect, CSize. Updated Win32++ to support C++ Builder 13 CE.
Replaced include guards with #pragma once.
Updated CDC::GradientFill and CRegKey::RecurseDeleteKey
Version 10.3.0 Released
Bug fix for the DDXDemo sample.
Version 10.3.0
Added CProgressBar::GetRange function overload.
Updated CDateTime, CMonthCalendar, CProgressBar, CListBox, CToolTip
Updated CListView, CTreeView and the wrappers for other Common Controls.
Fixed CStatusBar::SetPartText, and updated a few samples.
Modified CWinApp::UpdateDefaultPrinter. Updated samples.
Updated TaskDialogBox.
Updated CMenu and samples.
Updated GetMenu
Updated wxx_gdi.h
Updated the MovieShow sample.
Tweaked the programming style in several files.
Updated CMetaFile, CMetaFileDC, CEnhMetaFile, CEnhMetaFileDC
Updated CDC, CTaskDialog, CColorDialog and CFileDialog.
Updated CWinApp and CWnd.
Updated the DirectX samples.
Updated the Direct2D and DirectX11 samples.
Updated samples.
Added DirectX12 sample. Removed DirectX9 sample.
Update precompiled headers.
Updated the unit tests.
Updated CFile, , CFrameT, CRegKey, and CRibbonT.
Updated CFileFind, CFolderDialog and CFolderDialogEx
Updated wxx_ribbon.h
Updated CString, CFrameT and DockTabbedMDI sample.
Updated RibbonDockFrame
Updated TestCString
Updated samples.
Added Unit tests.
Updated Help.
Updated CArchive
Updated CArchive.
Updated CFile, and CSocket
Updated CSocket.
Updated DialogTemplate sample.
Updated CDocker and CFrameT.
Updated CString and CRegKey.
Updated CDC, CGDIObject, CImageList and CMenu.
Updated CRegKey.
Updated CDC, CGDIObject, CImageList and CMenu.
Updated CString, CStringT, CAtoBSTR, CAtoW, CWtoA and CWtoBSTR.
Updated CString and the DialogTemplate sample.
Updated CString
Updated CDocker, CFrameT, CDocker, CMDIFrameT, CResizer. CStatusBar.
Updated CGlobalLockT and the BatchSourceFileEditor sample.
Updated CRichEdit, CStringT, and the samples.
Tidied the code in switch statements.
Updated Win32++ include files and samples.
Updated wxx_rect.h
Updated the Win32++ include files.
Added BatchSourceFileEditor sample.
Updated CStringT.
Renamed Browser sample to BrowserEx.
Updated CFile, CString and CWinApp.
Updated CFrameT and samples.
Updated CFrameT, and the Browser, Explore and ToolbarBuilder samples.