src/01 NativeMessageLoop/01 NativeMessageLoop/Program.cs
/// <summary>
/// The main entry point for the application.
/// </summary>
The main entry point for the application.
The main entry point for the application .
[STAThread]
        static void Main()
        {
            var hWndOfMainWin = WinNative.CreateWindow("Native Windows Message Loop", 
                                                       WndProc, 
                                                       new Rectangle(100, 100, 700, 400)); 
            var buttonHwnd = WinNative.CreateButton("Do some work",                 
                                                    hWndOfMainWin,                  
                                                    new Rectangle(50, 50, 100, 50), 
                                                    CAUSE_WORKLOAD_BUTTON_ID);      
            DoMessageLoop();
        }
[ STAThread ] static void Main ( ) { var hWndOfMainWin = WinNative . CreateWindow ( " " , WndProc , new Rectangle ( 100 , 100 , 700 , 400 ) ) ; var buttonHwnd = WinNative . CreateButton ( " " , hWndOfMainWin , new Rectangle ( 50 , 50 , 100 , 50 ) , CAUSE_WORKLOAD_BUTTON_ID ) ; DoMessageLoop ( ) ; }
The main entry point for the application.
The main entry point for the application .
// Window Pos and Size //The Name of the Button. // Parent Windows. // Size of Button. // Identifier for Message Queue