*/
BOOL CChildFrame::EnsureValidDockState(CDockState& state)
{
- for (int i = state.m_arrBarInfo.GetSize()-1 ; i >= 0; i--)
+ for (int i = (int) state.m_arrBarInfo.GetSize()-1 ; i >= 0; i--)
{
BOOL barIsCorrect = TRUE;
CControlBarInfo* pInfo = (CControlBarInfo*)state.m_arrBarInfo[i];
bool
CMoveConstraint::OnTtnNeedText(TOOLTIPTEXT * pTTT, LRESULT * plresult)
{
- UINT id = pTTT->hdr.idFrom;
+ UINT_PTR id = pTTT->hdr.idFrom;
UINT uflags = pTTT->uFlags;
if (uflags & TTF_IDISHWND)
id = GetDlgCtrlID((HWND)id);
CString m_sRegistrySubkey; // defaults to _T("LastWindowPos")
CString m_sRegistryValueName; // should be name of window
// tooltips
- CMap<UINT, UINT, tip, tip&> m_tips;
+ CMap<UINT_PTR, UINT_PTR, tip, tip&> m_tips;
};
} // namespace
UINT m_nTimeoutSeconds; // Seconds for a timeout.
BOOL m_bTimeoutDisabled; // Flag whether the timeout is disabled.
- UINT m_nTimeoutTimer; // Timer for the timeout.
+ UINT_PTR m_nTimeoutTimer; // Timer for the timeout.
CString m_strRegistryKey; // Entry for storing the result in the
// registry, if the MB_DONT_DISPLAY_AGAIN
if (FindPage(pPage) == -1)
{
PAGEITEM pi(pPage, szTitle, dwItemData);
- int nPage = m_aPages.Add(pi);
+ int nPage = (int) m_aPages.Add(pi);
if (szTitle)
{
int CPropertyPageHost::FindPage(CPropertyPage* pPage)
{
- int nPage = m_aPages.GetSize();
+ int nPage = (int) m_aPages.GetSize();
while (nPage--)
{
void CPropertyPageHost::OnOK()
{
- int nPage = m_aPages.GetSize();
+ int nPage = (int) m_aPages.GetSize();
while (nPage--)
{
*/
void CPropertyPageHost::UpdatePagesData()
{
- int nPage = m_aPages.GetSize();
+ int nPage = (int) m_aPages.GetSize();
while (nPage--)
{
CPropertyPage* CPropertyPageHost::FindPage(DWORD dwItemData)
{
- int nPage = m_aPages.GetSize();
+ int nPage = (int) m_aPages.GetSize();
while (nPage--)
{
BOOL AddPage(CPropertyPage* pPage, LPCTSTR szTitle = NULL, DWORD dwItemData = 0);
BOOL SetActivePage(int nIndex, BOOL bAndFocus = TRUE);
BOOL SetActivePage(CPropertyPage* pPage, BOOL bAndFocus = TRUE);
- int GetPageCount() { return m_aPages.GetSize(); }
+ int GetPageCount() { return (int) m_aPages.GetSize(); }
CString GetPageTitle(int nIndex);
DWORD GetPageItemData(int nIndex);
CPropertyPage* GetPage(int nIndex);
nIDPrompt);
// Display the message box dialog and return the result.
- return dlgMessage.DoModal();
+ return (int) dlgMessage.DoModal();
}
/**
public:
void Add(int val) { m_map.SetAt(val, 1); }
void Remove(int val) { m_map.RemoveKey(val); }
- int count() const { return m_map.GetCount(); }
+ int count() const { return (int) m_map.GetCount(); }
bool isPresent(int val) const { int parm; return !!m_map.Lookup(val, parm); }
int getSingle() const
{