⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vc25pro_doc_unawinclasses.html

📁 Voice Communicator (VC) 一套处理音频压缩的的控件包
💻 HTML
📖 第 1 页 / 共 4 页
字号:
      Returns current selected item (string) index, or -1 if no item is selected.
    </TD></TR></TABLE><P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">property <A HREF="#class_unaWinCombobox"><SPAN class="class">unaWinCombobox</SPAN></A>.count: unsigned;</SPAN><P />
      Returns number of items (strings) in combobox list.
    </TD></TR></TABLE></DIV>
<DIV><P /><H4>Class <A NAME="class_unaWinEdit"><SPAN class="class">unaWinEdit</SPAN></A>(<A HREF="#class_unaWinWindow"><SPAN class="class">unaWinWindow</SPAN></A>)</H4><P />
    EDIT window.
  <P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">function <A HREF="#class_unaWinEdit"><SPAN class="class">unaWinEdit</SPAN></A>.onGetDlgCode(): LRESULT; override;</SPAN><P /></TD></TR></TABLE><P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">constructor <A HREF="#class_unaWinEdit"><SPAN class="class">unaWinEdit</SPAN></A>.create(const text: string; parent: <A HREF="#class_unaWinWindow"><SPAN class="class">unaWinWindow</SPAN></A>; x: int = 2; y: int = 2; w: int = 64; h: int = 24);</SPAN><P />
      Creates EDIT window.
    </TD></TR></TABLE><P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">function <A HREF="#class_unaWinEdit"><SPAN class="class">unaWinEdit</SPAN></A>.setReadOnly(value: bool = true): <A HREF="#class_unaWinEdit"><SPAN class="class">unaWinEdit</SPAN></A>;</SPAN><P />
      Sets/resets read only mode for edit.
    </TD></TR></TABLE></DIV>
<DIV><P /><H4>Class <A NAME="class_unaWinMemo"><SPAN class="class">unaWinMemo</SPAN></A>(<A HREF="#class_unaWinEdit"><SPAN class="class">unaWinEdit</SPAN></A>)</H4><P />
    Memo window.
  <P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">function <A HREF="#class_unaWinMemo"><SPAN class="class">unaWinMemo</SPAN></A>.onCommand(cmd: int; wnd: int): bool; override;</SPAN><P /></TD></TR></TABLE><P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">constructor <A HREF="#class_unaWinMemo"><SPAN class="class">unaWinMemo</SPAN></A>.create(const text: string; parent: <A HREF="#class_unaWinWindow"><SPAN class="class">unaWinWindow</SPAN></A>; x: int = 2; y: int = 2; w: int = 64; h: int = 18);</SPAN><P />
      Creates EDIT window with ES_MULTILINE style set by default.
    </TD></TR></TABLE><P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">function <A HREF="#class_unaWinMemo"><SPAN class="class">unaWinMemo</SPAN></A>.setSel(starting, ending: int): <A HREF="#class_unaWinMemo"><SPAN class="class">unaWinMemo</SPAN></A>;</SPAN><P />
      Sets the selection in memo.
    </TD></TR></TABLE><P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">function <A HREF="#class_unaWinMemo"><SPAN class="class">unaWinMemo</SPAN></A>.replaceSel(const line: string): <A HREF="#class_unaWinMemo"><SPAN class="class">unaWinMemo</SPAN></A>;</SPAN><P />
      Replaces selected text with given string.
    </TD></TR></TABLE><P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">function <A HREF="#class_unaWinMemo"><SPAN class="class">unaWinMemo</SPAN></A>.getLine(index: unsigned = 0): string;</SPAN><P />
      Returns line from memo with specified index (starting form 0).
      <BR>Line length is limited to 65535.
    </TD></TR></TABLE></DIV>
<DIV><P /><H4>Class <A NAME="class_unaWinListBox"><SPAN class="class">unaWinListBox</SPAN></A>(<A HREF="#class_unaWinWindow"><SPAN class="class">unaWinWindow</SPAN></A>)</H4><P />
    LISTBOX window.
  <P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">constructor <A HREF="#class_unaWinListBox"><SPAN class="class">unaWinListBox</SPAN></A>.create(parent: <A HREF="#class_unaWinWindow"><SPAN class="class">unaWinWindow</SPAN></A>; x: int = 2; y: int = 2; w: int = 64; h: int = 50);</SPAN><P />
      Creates LISTBOX window.
    </TD></TR></TABLE></DIV>
<DIV><P /><H4>Class <A NAME="class_unaWinStatic"><SPAN class="class">unaWinStatic</SPAN></A>(<A HREF="#class_unaWinWindow"><SPAN class="class">unaWinWindow</SPAN></A>)</H4><P />
    STATIC window
  <P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">constructor <A HREF="#class_unaWinStatic"><SPAN class="class">unaWinStatic</SPAN></A>.create(const caption: string; parent: <A HREF="#class_unaWinWindow"><SPAN class="class">unaWinWindow</SPAN></A>; x: int = 2; y: int = 2; w: int = 64; h: int = 18);</SPAN><P />
      Creates STATIC window.
    </TD></TR></TABLE></DIV>
<DIV><P /><H4>Class <A NAME="class_unaWinApp"><SPAN class="class">unaWinApp</SPAN></A>(<A HREF="#class_unaWinWindow"><SPAN class="class">unaWinWindow</SPAN></A>)</H4><P />
    Window class which can be used as main application window.
  <P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">function <A HREF="#class_unaWinApp"><SPAN class="class">unaWinApp</SPAN></A>.onClose(): bool; override;</SPAN><P /></TD></TR></TABLE><P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">function <A HREF="#class_unaWinApp"><SPAN class="class">unaWinApp</SPAN></A>.initWindow(): bool; override;</SPAN><P /></TD></TR></TABLE><P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">function <A HREF="#class_unaWinApp"><SPAN class="class">unaWinApp</SPAN></A>.notifyDestroy(): bool; override;</SPAN><P />
      WM_NCDESTROY message handler.
      <BR>Calls quit() method to terminate the application.
    </TD></TR></TABLE><P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">function <A HREF="#class_unaWinApp"><SPAN class="class">unaWinApp</SPAN></A>.onActivateApp(isActivate: bool; activeThreadId: unsigned): bool; override;</SPAN><P />
      WM_ACTIVATEAPP message handler.
    </TD></TR></TABLE><P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">function <A HREF="#class_unaWinApp"><SPAN class="class">unaWinApp</SPAN></A>.onRunEnterLeave(enter: bool): bool; virtual;</SPAN><P /></TD></TR></TABLE><P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">procedure <A HREF="#class_unaWinApp"><SPAN class="class">unaWinApp</SPAN></A>.afterConstruction(); override;</SPAN><P /></TD></TR></TABLE><P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">procedure <A HREF="#class_unaWinApp"><SPAN class="class">unaWinApp</SPAN></A>.beforeDestruction(); override;</SPAN><P /></TD></TR></TABLE><P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">function <A HREF="#class_unaWinApp"><SPAN class="class">unaWinApp</SPAN></A>.run(): <A HREF="#class_unaWinApp"><SPAN class="class">unaWinApp</SPAN></A>;</SPAN><P />
      Main window cycle. Do not returns the control until WM_QUIT messages is received.
    </TD></TR></TABLE><P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">procedure <A HREF="#class_unaWinApp"><SPAN class="class">unaWinApp</SPAN></A>.quit(exitCode: int = 0);</SPAN><P />
      Terminates the application using the PostQuitMessage() routine.
    </TD></TR></TABLE><P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">procedure <A HREF="#class_unaWinApp"><SPAN class="class">unaWinApp</SPAN></A>.wakeUp();</SPAN><P /></TD></TR></TABLE><P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">property <A HREF="#class_unaWinApp"><SPAN class="class">unaWinApp</SPAN></A>.exitCode: int;</SPAN><P />
      Specifies exit code used when terminating the application.
    </TD></TR></TABLE><P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">property <A HREF="#class_unaWinApp"><SPAN class="class">unaWinApp</SPAN></A>.isRunning: bool;</SPAN><P />
      Specifies exit code used when terminating the application.
    </TD></TR></TABLE></DIV>
<DIV><P /><H4>Class <A NAME="class_unaWinGraphicsApp"><SPAN class="class">unaWinGraphicsApp</SPAN></A>(<A HREF="#class_unaWinApp"><SPAN class="class">unaWinApp</SPAN></A>)</H4><P />
    Windows application whith graphics support.
  <P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">function <A HREF="#class_unaWinGraphicsApp"><SPAN class="class">unaWinGraphicsApp</SPAN></A>.onDrawFrame(): bool; virtual;</SPAN><P /></TD></TR></TABLE><P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">function <A HREF="#class_unaWinGraphicsApp"><SPAN class="class">unaWinGraphicsApp</SPAN></A>.onRunEnterLeave(enter: bool): bool; override;</SPAN><P /></TD></TR></TABLE><P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">function <A HREF="#class_unaWinGraphicsApp"><SPAN class="class">unaWinGraphicsApp</SPAN></A>.doCreateWindow(): hWnd; override;</SPAN><P /></TD></TR></TABLE><P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">procedure <A HREF="#class_unaWinGraphicsApp"><SPAN class="class">unaWinGraphicsApp</SPAN></A>.skipFrame();</SPAN><P /></TD></TR></TABLE><P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">constructor <A HREF="#class_unaWinGraphicsApp"><SPAN class="class">unaWinGraphicsApp</SPAN></A>.create(fps: unsigned = 20; frameWidth: unsigned = 700; frameHeight: unsigned = 500; bgColor: COLORREF = 0; const title: string = ''; canResize: bool = true; canMinimize: bool = true; x: int = 50; y: int = 20; icon: int; windowFlags: int; windowExFlags: int; memWidth: int; memHeight: int); overload;</SPAN><P /></TD></TR></TABLE><P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">constructor <A HREF="#class_unaWinGraphicsApp"><SPAN class="class">unaWinGraphicsApp</SPAN></A>.create(wnd: handle; fps: unsigned = 20; bgColor: COLORREF = 0; const title: string = ''; canResize: bool = true; memWidth: int; memHeight: int); overload;</SPAN><P /></TD></TR></TABLE><P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">destructor <A HREF="#class_unaWinGraphicsApp"><SPAN class="class">unaWinGraphicsApp</SPAN></A>.destroy(); override;</SPAN><P /></TD></TR></TABLE><P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">function <A HREF="#class_unaWinGraphicsApp"><SPAN class="class">unaWinGraphicsApp</SPAN></A>.setBits(x, y: int; data: pointer; size: unsigned): unsigned;</SPAN><P /></TD></TR></TABLE><P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">property <A HREF="#class_unaWinGraphicsApp"><SPAN class="class">unaWinGraphicsApp</SPAN></A>.grDC: hDC;</SPAN><P /></TD></TR></TABLE><P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">property <A HREF="#class_unaWinGraphicsApp"><SPAN class="class">unaWinGraphicsApp</SPAN></A>.memDC: hDC;</SPAN><P /></TD></TR></TABLE><P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">property <A HREF="#class_unaWinGraphicsApp"><SPAN class="class">unaWinGraphicsApp</SPAN></A>.memDIB: hBITMAP;</SPAN><P /></TD></TR></TABLE><P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">property <A HREF="#class_unaWinGraphicsApp"><SPAN class="class">unaWinGraphicsApp</SPAN></A>.memDIBInfo: BITMAPINFO;</SPAN><P /></TD></TR></TABLE><P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">property <A HREF="#class_unaWinGraphicsApp"><SPAN class="class">unaWinGraphicsApp</SPAN></A>.memXSize: int;</SPAN><P /></TD></TR></TABLE><P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">property <A HREF="#class_unaWinGraphicsApp"><SPAN class="class">unaWinGraphicsApp</SPAN></A>.memYSize: int;</SPAN><P /></TD></TR></TABLE><P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">property <A HREF="#class_unaWinGraphicsApp"><SPAN class="class">unaWinGraphicsApp</SPAN></A>.fps: unsigned;</SPAN><P /></TD></TR></TABLE><P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">property <A HREF="#class_unaWinGraphicsApp"><SPAN class="class">unaWinGraphicsApp</SPAN></A>.actualFps: unsigned;</SPAN><P /></TD></TR></TABLE><P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">property <A HREF="#class_unaWinGraphicsApp"><SPAN class="class">unaWinGraphicsApp</SPAN></A>.frameWidth: unsigned;</SPAN><P /></TD></TR></TABLE><P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">property <A HREF="#class_unaWinGraphicsApp"><SPAN class="class">unaWinGraphicsApp</SPAN></A>.frameHeight: unsigned;</SPAN><P /></TD></TR></TABLE><P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">property <A HREF="#class_unaWinGraphicsApp"><SPAN class="class">unaWinGraphicsApp</SPAN></A>.bgColor: unsigned;</SPAN><P /></TD></TR></TABLE><P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">property <A HREF="#class_unaWinGraphicsApp"><SPAN class="class">unaWinGraphicsApp</SPAN></A>.eraseBg: bool;</SPAN><P /></TD></TR></TABLE></DIV>
<DIV><P /><H4>Class <A NAME="class_unaWinBitmap"><SPAN class="class">unaWinBitmap</SPAN></A>(<SPAN class="class">tObject</SPAN>)</H4><P />
    Windows bitmap.
  </DIV>
<DIV><P /><H4>Class <A NAME="class_unaWinConsoleApp"><SPAN class="class">unaWinConsoleApp</SPAN></A>(<A HREF="#class_unaWinApp"><SPAN class="class">unaWinApp</SPAN></A>)</H4><P />
    Simple console-like application main window class.
  <P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">function <A HREF="#class_unaWinConsoleApp"><SPAN class="class">unaWinConsoleApp</SPAN></A>.onCommand(cmd, wnd: int): bool; override;</SPAN><P />
      WM_COMMAND message handler. cmd values below 10 are reserved for internal usage.
    </TD></TR></TABLE><P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">function <A HREF="#class_unaWinConsoleApp"><SPAN class="class">unaWinConsoleApp</SPAN></A>.onDestroy(): bool; override;</SPAN><P />
      WM_DESTROY message handler.
    </TD></TR></TABLE><P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">procedure <A HREF="#class_unaWinConsoleApp"><SPAN class="class">unaWinConsoleApp</SPAN></A>.onStart(); virtual;</SPAN><P />
      Called on the start of application.
    </TD></TR></TABLE><P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">procedure <A HREF="#class_unaWinConsoleApp"><SPAN class="class">unaWinConsoleApp</SPAN></A>.onStop(); virtual;</SPAN><P />
      Called on the end of application.
    </TD></TR></TABLE><P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">function <A HREF="#class_unaWinConsoleApp"><SPAN class="class">unaWinConsoleApp</SPAN></A>.doInit(): bool; virtual;</SPAN><P />
      This method can be used to perform additional initialization.
    </TD></TR></TABLE><P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">procedure <A HREF="#class_unaWinConsoleApp"><SPAN class="class">unaWinConsoleApp</SPAN></A>.idle(); override;</SPAN><P />
      This method is used to display "console" memo messages.
    </TD></TR></TABLE><P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">constructor <A HREF="#class_unaWinConsoleApp"><SPAN class="class">unaWinConsoleApp</SPAN></A>.create(hasGUi: bool; const caption, copy: string; const iniFile: string = ''; icon: hIcon = 0; captionHeight: unsigned = 32; btnExit: bool = true; btnStart: bool = false; btnStop: bool = false; style: unsigned = WS_OVERLAPPEDWINDOW; exStyle: unsigned = WS_EX_CONTROLPARENT);</SPAN><P />
      Creates console-like window.
    </TD></TR></TABLE><P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">destructor <A HREF="#class_unaWinConsoleApp"><SPAN class="class">unaWinConsoleApp</SPAN></A>.destroy(); override;</SPAN><P />
    </TD></TR></TABLE><P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">property <A HREF="#class_unaWinConsoleApp"><SPAN class="class">unaWinConsoleApp</SPAN></A>.btnExit: <A HREF="#class_unaWinButton"><SPAN class="class">unaWinButton</SPAN></A>;</SPAN><P />
      Exit button.
    </TD></TR></TABLE><P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">property <A HREF="#class_unaWinConsoleApp"><SPAN class="class">unaWinConsoleApp</SPAN></A>.btnStart: <A HREF="#class_unaWinButton"><SPAN class="class">unaWinButton</SPAN></A>;</SPAN><P />
      Start button.
    </TD></TR></TABLE><P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">property <A HREF="#class_unaWinConsoleApp"><SPAN class="class">unaWinConsoleApp</SPAN></A>.btnStop: <A HREF="#class_unaWinButton"><SPAN class="class">unaWinButton</SPAN></A>;</SPAN><P />
      Stop button.
    </TD></TR></TABLE><P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">property <A HREF="#class_unaWinConsoleApp"><SPAN class="class">unaWinConsoleApp</SPAN></A>.captionHeight: unsigned;</SPAN><P />
      Height of upper panel with buttons.
    </TD></TR></TABLE><P /><TABLE BORDER="1" width="100%"><TR><TD><SPAN class="source">property <A HREF="#class_unaWinConsoleApp"><SPAN class="class">unaWinConsoleApp</SPAN></A>.hasGUI: bool;</SPAN><P /></TD></TR></TABLE></DIV>
</DIV>
<DIV><HR /><P />Unit routines<DIV><P /><TABLE BORDER="1" width="100%"><TR><TD><A NAME="routine_lpfnHook"><SPAN class="source">function <SPAN class="class">unaWinClasses</SPAN>.lpfnHook(Wnd: HWND; Message: UINT; wParam: WPARAM; lParam: LPARAM): UINT; stdcall;</SPAN></A><P /></TD></TR></TABLE></DIV><DIV><P /><TABLE BORDER="1" width="100%"><TR><TD><A NAME="routine_lpfnHook"><SPAN class="source">function <SPAN class="class">unaWinClasses</SPAN>.lpfnHook(Wnd: HWND; Message: UINT; wParam: WPARAM; lParam: LPARAM): UINT; stdcall;</SPAN></A><P /></TD></TR></TABLE></DIV><DIV><P /><TABLE BORDER="1" width="100%"><TR><TD><A NAME="routine_ChooseFont"><SPAN class="source">function <SPAN class="class">unaWinClasses</SPAN>.ChooseFont(var ChooseFont: TChooseFont): Bool; stdcall;</SPAN></A><P /></TD></TR></TABLE></DIV><DIV><P /><TABLE BORDER="1" width="100%"><TR><TD><A NAME="routine_ChooseFontA"><SPAN class="source">function <SPAN class="class">unaWinClasses</SPAN>.ChooseFontA(var ChooseFont: TChooseFontA): Bool; stdcall;</SPAN></A><P /></TD></TR></TABLE></DIV><DIV><P /><TABLE BORDER="1" width="100%"><TR><TD><A NAME="routine_ChooseFontW"><SPAN class="source">function <SPAN class="class">unaWinClasses</SPAN>.ChooseFontW(var ChooseFont: TChooseFontW): Bool; stdcall;</SPAN></A><P /></TD></TR></TABLE></DIV><DIV><P /><TABLE BORDER="1" width="100%"><TR><TD><A NAME="routine_tmessageEvent"><SPAN class="source">function <SPAN class="class">unaWinClasses</SPAN>.tmessageEvent(sender: tObject; wParam, lParam: int): int of object;</SPAN></A><P /></TD></TR></TABLE></DIV><DIV><P /><TABLE BORDER="1" width="100%"><TR><TD><A NAME="routine_getClass"><SPAN class="source">function <SPAN class="class">unaWinClasses</SPAN>.getClass(const className: string = ''; isStdClass: bool = false; style: unsigned = 0; icon: handle = 0; smallIcon: handle = 0; cursor: handle = 0; brBrush: handle = COLOR_WINDOW; menuName: int = 0; instance: unsigned = 0; force: bool = true): <A HREF="#class_unaWinClass"><SPAN class="class">unaWinClass</SPAN></A>;</SPAN></A><P />
  Returns Windows class encapsulation instance by given class name.
  Class will be created and registered if necessary.
</TD></TR></TABLE></DIV></DIV>
</DIV>
<HR><DIV style="text-align: center; font-size: 8pt">&copy; 2000-2007 <A HREF="http://www.lakeofsoft.com/">Lake of Soft, Ltd</A><BR></DIV></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -