junk memo

Layout suspend/resume




#ifndef EXIT_FAILURE
#define EXIT_FAILURE 1
#endif
#ifndef EXIT_SUCCESS
#define EXIT_SUCCESS 0
#endif

true 1
false 0



ref class myClass {
} ; // semi-colon



    // include guarde
    #pragma once



    // include guarde
    #ifndef __MY_H__
    #define __MY_H__
    :
    :
    #endif



Argument をいちいちmainの引数から引き回さなくてもどこでも読める?


array<String^>^args = Environment::GetCommandLineArgs();



Form::AutoScaleBaseSize

Windows Forms now uses the following logic to automatically scale forms and their contents:

At design:

At run :

PerformAutoScale is also automatically invoked in the following situations:

Child controls can modify their scaling behavior through several means:


Layout
The SuspendLayout and ResumeLayout methods are used in tandem to suppress multiple Layout events while adjusting multiple attributes of the control.

typically
  1. call the SuspendLayout method
  2. set the Size, Location, Anchor, or Dock properties of the control
  3. call the ResumeLayout method to enable the changes to take effect.