When a memory device context is created, the GDI automatically selects a 1 x 1 monochrome stock bitmap for it. GDI output functions can be used with a memory device context only if a bitmap is created and selected for that context.
就是创建内存dc大小是1*1,需要选择位图进去,位图决定尺寸大小