热键定义报警,为何?如何修正?
weill 2005-12-24 09:49:40 代码如下:
#define Unit1H
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
//---------------------------------------------------------------------------
class TForm1 : public TForm
{
__published: // IDE-managed Components
void __fastcall FormCreate(TObject *Sender);
void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
private: // User declarations
public: // User declarations
BEGIN_MESSAGE_MAP
MESSAGE_HANDLER(WM_HOTKEY, TMessage, OnHotKey)
END_MESSAGE_MAP(TForm);
__fastcall TForm1(TComponent* Owner);
bool __fastcall GetScreen(Graphics::TBitmap *bmp);
void __fastcall OnHotKey(TMessage &Msg);
};
//---------------------------------------------------------------------------
extern PACKAGE TForm1 *Form1;
//---------------------------------------------------------------------------
#endif
报警提示:
[C++ Warning] Unit1.h(18): W8027 Functions containing switch are not expanded inline
为何?如何修正?