- myofn.h ̒ǉ
- myofn.cpp ̒ǉ
-- library Ƃ comdlg32.lib KvɂȂ͂
-- commdlg.h Kv windows.h Ɋ܂܂Ă͂

- myapp.h
-- CMyOfn m_ofnOpen  m_ofnSave  public member ƂĒǉ
-- BOOL GetDoc(const TCHAR* szName) ǉB
- myapp.cpp
-- Run() ̈ꕔ؂oAGetDoc() ƂARun() ĂԂ悤ɂB

- mywin.h
-- InvalidateRect() ǉB
- mywin.cpp
-- InvalidateRect() B

- myappwin.h
-- ReDraw() ǉBGetDoc() ɌĂяoB

- myappwin.cpp
-- OnCommand  IDM_FILE_OPEN ɑ΂鏈ǉB
-- ReDraw 

- resource.rc
-- IDM_FILE_OPEN  GRAYED ƂB

-----------------------------------------------------------------------
gqƈvȂ contents ̏ꍇACMyDjpeg ŏdG[NB
̑΍̑OɁACMyReader 𓱓Ae check ł悤ɂB
  CMyReader(const TCHAR* szName)
ŁA1 block ǂނ NextBlock() pӁBX BlockPtr  BlockLen 
pӂ΁Ae check łB
NextBlock() ɂ悤B
NextBlock() ͐lԂB

NextBlock() ł́Am_nRead == 0  m_nFilled > 0 ͓̎ǂ܂ȂB
Read() ł́A
m_nFilled > m_nRead ̎
  nReady = m_nFilled - m_nRead;
  if(nReady > nReq)
    nReq l߂āAm_nRead += nReq;
  else
    nReady l߂āAnReq - nReady { Read();
łȂΖ{ Read()
