win32 c++ everything version 3

2020/04/20 17:20 by yamasyuh68
  :追加された部分   :削除された部分
(差分が大きい場合、文字単位では表示しません)
win32 c++ everything
extern
ヘッダに宣言だけ書いてソースの一つで実体化する


-----
コントロールの自動リサイズ
GetClientRect()
typedef struct tagRECT {
  LONG left;
  LONG top;
  LONG right;
  LONG bottom;
} RECT, *PRECT, *NPRECT, *LPRECT;

-----

case WM_SIZE:
int picw=200,pich=50 ,edith=15 ,btnw=50 ; // picture size , edit height , button width
Rect rc;
GetClientRect( hwnd , &rc) ; // top:left = 0
int width=rc->right , height=rc->bottom ;

movewindow( hList , 0,0, width-picw,height-edith,true) ;
movewindow( hEdit , 0, height-edith , width-pice-btnw, edith ,true) ;

----
ウインドウ位置の保存読込
https://www.ruche-home.net/program/tips/window-place

----
第336章 GDI+の基礎 その2 
http://www.kumei.ne.jp/c_lang/sdk4/sdk_336.htm
#include <gdiplus.h>
Gdiplus.lib

----
win32 ピクチャーコントロールとは 

----
コンボボックス
https://ameblo.jp/sgl00044/entry-12503242529.html
      

extern
ヘッダに宣言だけ書いてソースの一つで実体化する


コントロールの自動リサイズ
GetClientRect()
typedef struct tagRECT {
LONG left;
LONG top;
LONG right;
LONG bottom;
} RECT, *PRECT, *NPRECT, *LPRECT;


case WM_SIZE:
int picw=200,pich=50 ,edith=15 ,btnw=50 ; // picture size , edit height , button width
Rect rc;
GetClientRect( hwnd , &rc) ; // top:left = 0
int width=rc->right , height=rc->bottom ;

movewindow( hList , 0,0, width-picw,height-edith,true) ;
movewindow( hEdit , 0, height-edith , width-pice-btnw, edith ,true) ;


ウインドウ位置の保存読込
https://www.ruche-home.net/program/tips/window-place


第336章 GDI+の基礎 その2
http://www.kumei.ne.jp/c_lang/sdk4/sdk_336.htm
#include <gdiplus.h>
Gdiplus.lib


win32 ピクチャーコントロールとは


コンボボックス
https://ameblo.jp/sgl00044/entry-12503242529.html