You catch the message (WM_COMMAND), verify that it's the correct menuitem that was pressed (LOWORD(wParam) == IdFileOpen), then call a function that loads the actual file. Eventually calling a dialog to select the file you want to load.