MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / OnOK

Method OnOK

editor/BriefScreenEdit.cpp:64–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62// CBriefScreenEdit message handlers
63
64void CBriefScreenEdit::OnOK() {
65 CComboBox *combo = (CComboBox *)GetDlgItem(IDC_BRIEF_ADDS_LAYOUT_LIST);
66 int sel = combo->GetCurSel();
67 if (sel > 0) {
68 combo->GetLBText(sel, layout_str);
69 } else {
70 layout_str = "";
71 }
72
73 if (bm_handle > BAD_BITMAP_HANDLE)
74 bm_FreeBitmap(bm_handle);
75
76 CDialog::OnOK();
77}
78
79BOOL CBriefScreenEdit::OnInitDialog() {
80 CDialog::OnInitDialog();

Callers

nothing calls this directly

Calls 1

bm_FreeBitmapFunction · 0.85

Tested by

no test coverage detected