MCPcopy Create free account
hub / github.com/ProgerXP/Notepad2e / Encoding_GetFromListView

Function Encoding_GetFromListView

src/Edit.c:790–805  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

788
789
790BOOL Encoding_GetFromListView ( HWND hwnd, int *pidEncoding )
791{
792 LVITEM lvi;
793 lvi.iItem = ListView_GetNextItem ( hwnd, -1, LVNI_ALL | LVNI_SELECTED );
794 lvi.iSubItem = 0;
795 lvi.mask = LVIF_PARAM;
796 if ( ListView_GetItem ( hwnd, &lvi ) ) {
797 if ( Encoding_IsValid ( ( int ) lvi.lParam ) ) {
798 *pidEncoding = ( int ) lvi.lParam;
799 return ( TRUE );
800 } else {
801 MsgBox ( MBINFO, IDS_ERR_ENCODINGNA );
802 }
803 }
804 return ( FALSE );
805}
806
807
808void Encoding_AddToComboboxEx ( HWND hwnd, int idSel, BOOL bRecodeOnly )

Callers 1

SelectEncodingDlgProcFunction · 0.85

Calls 2

Encoding_IsValidFunction · 0.85
MsgBoxFunction · 0.85

Tested by

no test coverage detected