I have a resource script (*.rc) that needs to use WIZ_CXDLG from commctrl.h/CommCtrl.pas. The original version does this via #include
:
#include <windows.h>
#include <commctrl.h>
1 DIALOGEX 0, 0, WIZ_CXDLG, WIZ_CYDLG
//...
However this doesn't compile in a Delphi XE6 project, neither with the Borland nor the MS resource compiler because commctrl.h isn't found.
What's the correct way to resolve this? I could probably download the Windows SDK but that seems like overkill.
Edit: FWIW - #include
-ing CommCtrl.pas doesn't work. In XE6 brcc32 apparently chokes on the WinApi.
prefix. In D2007 brcc32 stops at the interface uses clause. However we already successfully used simpler Pascal files like
unit MyProject_rc;
interface
/////////////////////////////////////////////////////////////////////////////
//
// Cursor
//
const
IDC_CURSOR_FOO = 1;
//[SNIP]
implementation
end.