#define FixBitmapInfo(lpbi) if ((lpbi)->biSizeImage == 0) \
(lpbi)->biSizeImage = DibSizeImage(lpbi); \
if ((lpbi)->biClrUsed == 0) \
- (lpbi)->biClrUsed = DibNumColors(lpbi); \
- if ((lpbi)->biCompression == BI_BITFIELDS && (lpbi)->biClrUsed == 0) \
- ; // (lpbi)->biClrUsed = 3;
+ (lpbi)->biClrUsed = DibNumColors(lpbi);
+
+// if ((lpbi)->biCompression == BI_BITFIELDS && (lpbi)->biClrUsed == 0)
+// ; // (lpbi)->biClrUsed = 3;
#define DibInfo(pDIB) ((BITMAPINFO FAR *)(pDIB))
// if (!HasStream())
// return FALSE;
- if (TRUE)
+// if (TRUE)
{
wxChar* appName = _T("application");
wxString appNameStr("");
// if (!HasStream())
// return FALSE;
- if (TRUE)
+// if (TRUE)
{
wxChar* appName = _T("application");
wxString appNameStr(_T(""));
// if (!HasStream())
// return FALSE;
- if (TRUE)
+// if (TRUE)
{
wxChar* appName = _T("application");
wxString appNameStr(_T(""));
// JACS 11/12/98: disabling this since the Forty Thieves sample
// shows this not working properly. In fact, if loading from a resource,
// the depth should become the screen depth, so why was it being called?
- if (0)
- {
- // Make a new bitmap that has the correct depth.
- wxBitmap newBitmap = bitmap.GetBitmapForDC(* this);
-
- m_selectedBitmap = newBitmap ;
- }
- else
- {
+// if (0)
+// {
+// // Make a new bitmap that has the correct depth.
+// wxBitmap newBitmap = bitmap.GetBitmapForDC(* this);
+//
+// m_selectedBitmap = newBitmap ;
+// }
+// else
+// {
m_selectedBitmap = bitmap;
- }
+// }
if (!m_selectedBitmap.Ok())
return;
return (id >= wxFIRST_MDI_CHILD) && (id <= wxLAST_MDI_CHILD);
}
-static UnpackMDIActivate(WXWPARAM wParam, WXLPARAM lParam,
- WXWORD *activate, WXHWND *hwndAct, WXHWND *hwndDeact);
+static void UnpackMDIActivate(WXWPARAM wParam, WXLPARAM lParam,
+ WXWORD *activate, WXHWND *hwndAct, WXHWND *hwndDeact);
// ===========================================================================
// implementation
MDISetMenu(win, hmenu, subMenu);
}
-static UnpackMDIActivate(WXWPARAM wParam, WXLPARAM lParam,
- WXWORD *activate, WXHWND *hwndAct, WXHWND *hwndDeact)
+static void UnpackMDIActivate(WXWPARAM wParam, WXLPARAM lParam,
+ WXWORD *activate, WXHWND *hwndAct, WXHWND *hwndDeact)
{
#ifdef __WIN32__
*activate = TRUE;