I'm having trouble understanding the SelectObject function because I don't know what "select into" means in the explanation "The SelectObject function selects an object into the specified device context (DC).".
Normally when you select something, you select one object e.g. a block of text you want to copy, but how can you select something into something else, and what does that mean?
HGDIOBJ SelectObject(
HDC hdc,
HGDIOBJ h
);
There's a link to Setting the Pen or Brush Color at the bottom of the page you linked. It can explain better. SelectObject
lets you to configure GDI environment, e.g. pen or brash, so you can draw complex scene w/o repeatedly specifying them in each GDI call.