Source/Paint/Controller.h
void handlePenstyleActions(HWND hwnd, int id) {
    // Get penstyle id.
    int cPenID = getPenFromMenuItem(hwnd, id);

    // Check that menu item.
    checkMenuItem(hwnd, id);

    // Change penstyle.
    defaultShapeGraphic.setLineStyle(
      cPenID
    );
  }
/// <summary>
/// Controller for changing pen style.
/// </summary>
/// <param name="hwnd">Handle of the window</param>
/// <param name="id">Menu ID of the item selected</param>

Controller for changing pen style.

Handle of the window
Menu ID of the item selected
Controller for changing pen style . Handle of the window Menu ID of the item selected
void handlePenstyleActions(HWND hwnd, int id) {
    int cPenID = getPenFromMenuItem(hwnd, id);
    checkMenuItem(hwnd, id);
    defaultShapeGraphic.setLineStyle(
      cPenID
    );
  }
void handlePenstyleActions ( HWND hwnd , int id ) { int cPenID = getPenFromMenuItem ( hwnd , id ) ; checkMenuItem ( hwnd , id ) ; defaultShapeGraphic . setLineStyle ( cPenID ) ; }
<summary>
Controller for changing pen style.
<summary > Controller for changing pen style .
// Get penstyle id. // Check that menu item. // Change penstyle.