ReactOS 0.4.16-dev-252-g9ccafe8
MLNGINFO Struct Reference

#include <mlng.h>

Public Member Functions

void InitDesc ()
 @implemented
 
void InitIcon ()
 @implemented
 
INT GetIconIndex ()
 @implemented
 
LPCWSTR GetDesc ()
 @implemented
 
void SetDesc (LPCWSTR pszDesc)
 @implemented
 

Public Attributes

HKL m_hKL
 
BOOL m_bInitDesc
 
BOOL m_bInitIcon
 
INT m_iIconIndex
 
WCHAR m_szDesc [128]
 

Detailed Description

Definition at line 10 of file mlng.h.

Member Function Documentation

◆ GetDesc()

LPCWSTR MLNGINFO::GetDesc ( )

@implemented

Definition at line 414 of file mlng.cpp.

415{
416 if (!m_bInitDesc)
417 InitDesc();
418
419 return m_szDesc;
420}
void InitDesc()
@implemented
Definition: mlng.cpp:370
BOOL m_bInitDesc
Definition: mlng.h:13
WCHAR m_szDesc[128]
Definition: mlng.h:16

◆ GetIconIndex()

INT MLNGINFO::GetIconIndex ( )

@implemented

Definition at line 429 of file mlng.cpp.

430{
431 if (!m_bInitIcon)
432 InitIcon();
433
434 return m_iIconIndex;
435}
void InitIcon()
@implemented
Definition: mlng.cpp:383
BOOL m_bInitIcon
Definition: mlng.h:14
INT m_iIconIndex
Definition: mlng.h:15

◆ InitDesc()

void MLNGINFO::InitDesc ( )

@implemented

Definition at line 370 of file mlng.cpp.

371{
372 if (m_bInitDesc)
373 return;
374
375 WCHAR szDesc[MAX_PATH], szImeFileName[MAX_PATH];
376 GetHKLDesctription(m_hKL, szDesc, (UINT)_countof(szDesc),
377 szImeFileName, (UINT)_countof(szImeFileName));
378 SetDesc(szDesc);
380}
#define TRUE
Definition: types.h:120
#define MAX_PATH
Definition: compat.h:34
static BOOL GetHKLDesctription(_In_ HKL hKL, _Out_ LPWSTR pszDesc, _In_ UINT cchDesc, _Out_ LPWSTR pszImeFileName, _In_ UINT cchImeFileName)
@implemented
Definition: mlng.cpp:183
unsigned int UINT
Definition: ndis.h:50
#define _countof(array)
Definition: sndvol32.h:70
HKL m_hKL
Definition: mlng.h:12
void SetDesc(LPCWSTR pszDesc)
@implemented
Definition: mlng.cpp:423
__wchar_t WCHAR
Definition: xmlstorage.h:180

Referenced by GetDesc().

◆ InitIcon()

void MLNGINFO::InitIcon ( )

@implemented

Definition at line 383 of file mlng.cpp.

384{
385 if (m_bInitIcon)
386 return;
387
388 WCHAR szDesc[MAX_PATH], szImeFileName[MAX_PATH];
389 GetHKLDesctription(m_hKL, szDesc, (UINT)_countof(szDesc),
390 szImeFileName, (UINT)_countof(szImeFileName));
391 SetDesc(szDesc);
393
394 INT cxIcon, cyIcon;
395 InatGetIconSize(&cxIcon, &cyIcon);
396
397 HICON hIcon = NULL;
398 if (szImeFileName[0])
399 hIcon = GetIconFromFile(cxIcon, cyIcon, szImeFileName, 0);
400
401 if (!hIcon)
403
404 if (hIcon)
405 {
408 }
409
411}
#define NULL
Definition: types.h:112
HICON GetIconFromFile(_In_ INT cx, _In_ INT cy, _In_ LPCWSTR pszFileName, _In_ INT iIcon)
@implemented
Definition: mlng.cpp:211
INT InatAddIcon(_In_ HICON hIcon)
@implemented
Definition: mlng.cpp:252
HICON InatCreateIcon(_In_ LANGID LangID)
@implemented
Definition: mlng.cpp:316
BOOL InatGetIconSize(_Out_ INT *pcx, _Out_ INT *pcy)
@implemented
Definition: mlng.cpp:334
static HICON
Definition: imagelist.c:80
HICON hIcon
Definition: msconfig.c:44
#define LOWORD(l)
Definition: pedump.c:82
int32_t INT
Definition: typedefs.h:58
BOOL WINAPI DestroyIcon(_In_ HICON)
Definition: cursoricon.c:2105

Referenced by GetIconIndex().

◆ SetDesc()

void MLNGINFO::SetDesc ( LPCWSTR  pszDesc)

@implemented

Definition at line 423 of file mlng.cpp.

424{
426}
STRSAFEAPI StringCchCopyW(STRSAFE_LPWSTR pszDest, size_t cchDest, STRSAFE_LPCWSTR pszSrc)
Definition: strsafe.h:149

Referenced by InitDesc(), and InitIcon().

Member Data Documentation

◆ m_bInitDesc

BOOL MLNGINFO::m_bInitDesc

Definition at line 13 of file mlng.h.

Referenced by GetDesc(), InitDesc(), and InitIcon().

◆ m_bInitIcon

BOOL MLNGINFO::m_bInitIcon

Definition at line 14 of file mlng.h.

Referenced by GetIconIndex(), and InitIcon().

◆ m_hKL

HKL MLNGINFO::m_hKL

Definition at line 12 of file mlng.h.

Referenced by InitDesc(), and InitIcon().

◆ m_iIconIndex

INT MLNGINFO::m_iIconIndex

Definition at line 15 of file mlng.h.

Referenced by GetIconIndex(), and InitIcon().

◆ m_szDesc

WCHAR MLNGINFO::m_szDesc[128]

Definition at line 16 of file mlng.h.

Referenced by GetDesc(), and SetDesc().


The documentation for this struct was generated from the following files: