當前位置:首頁 » 編程語言 » c語言window函數
擴展閱讀
webinf下怎麼引入js 2023-08-31 21:54:13
堡壘機怎麼打開web 2023-08-31 21:54:11

c語言window函數

發布時間: 2022-06-06 14:23:41

『壹』 c語言中的findwindow()函數參數是什麼

1.函數說明:FindWindow,Win32 API函數。
FindWindow函數返回與指定字元串相匹配的窗口類名或窗口名的最頂層窗口的窗口句柄。這個函數不會查找子窗口。
2.函數原型:
HWND FindWindow( LPCTSTR lpClassName,
LPCTSTR lpWindowName
);3.參數說明:
lpClassName
指向一個以null結尾的、用來指定類名的字元串或一個可以確定類名字元串的原子。如果這個參數是一個原子,那麼它必須是一個在調用此函數前已經通過GlobalAddAtom函數創建好的全局原子。這個原子(一個16bit的值),必須被放置在lpClassName的低位位元組中,lpClassName的高位位元組置零。
lpWindowName
指向一個以null結尾的、用來指定窗口名(即窗口標題)的字元串。如果此參數為NULL,則匹配所有窗口名。
4返回值:
如果函數執行成功,則返回值是擁有指定窗口類名或窗口名的窗口的句柄。
如果函數執行失敗,則返回值為 NULL 。可以通過調用GetLastError函數獲得更加詳細的錯誤信息。5.使用示例:HWND hWndRcv = ::FindWindow(NULL,"123");if(hWndRcv != NULL){ AfxMessageBox("找到123窗口");}

『貳』 用C語言 調用 windows 內核的函數

#include <stdlib.h>
#include <windows.h>
#include <tchar.h>

int main()
{
ShellExecute(NULL, _T("Open"), _T("http://www..com"), NULL, NULL, SW_SHOWNORMAL);
return 0;
}

//這是打開網路的主頁,你要使用系統API,只要包括特定的頭文件,並保證鏈接庫引用就行了

『叄』 c語言,窗口函數window()怎麼使用

case LEFT :goleft(x, y); break;
case RIGHT :goright(x, y); break;
case DOWN :godown(x, y); break;
case UP :goup(x, y); break;
case ENTER :n=0; break;
case ESC :end();
}
}

void qipan()
{

『肆』 c語言中window函數的用法急急急!

c語言中的一般要用到的是主函數main(),然後就是一些常用的數學庫函數像:絕對值函數fab(n),平方根函數sqrt(n),冪函數pow(x,i)之類的,這些是直接可以拿來用的,還有一些就是根據自己的需要可以自定義一些函數,可以先定義後使用,也可以先使用後定義。基本上也就這三類的函數,不明白可以追問。

『伍』 c語言中文件conio.h中window()函數怎麼用

conio.h
conio.h不是c標准庫中的頭文件。
conio是console
input/output(控制台輸入輸出)的簡寫,其中定義了通過控制台進行數據輸入和數據輸出的函數,主要是一些用戶通過按鍵盤產生的對應操作,比如getch()函數等等。

包含的函數
cgets(char
*);
cprintf(const
char
*,
...);
cputs(const
char
*);
cscanf(const
char
*,
...);
inp(unsigned
short);
inpw(unsigned
short);
getch(void);
getche(void);
kbhit(void);
outp(unsigned
short,
int);
outpw(unsigned
short,
unsigned
short);
putch(int);
ungetch(int);
void
_cdecl
clreol
(void);
void
_cdecl
clrscr
(void);
void
_cdecl
delline
(void);
int
_cdecl
gettext
(int
left,
int
top,
int
right,
int
bottom,
void
*destin);
void
_cdecl
gettextinfo
(struct
text_info
*r);
void
_cdecl
gotoxy
(int
x,
int
y);
void
_cdecl
highvideo
(void);
void
_cdecl
insline
(void);
void
_cdecl
lowvideo
(void);
int
_cdecl
movetext
(int
left,
int
top,
int
right,
int
bottom,
int
destleft,
int
desttop);
void
_cdecl
normvideo
(void);
int
_cdecl
puttext
(int
left,
int
top,
int
right,
int
bottom,
void
*source);
void
_cdecl
textattr
(int
newattr);
void
_cdecl
textbackground
(int
newcolor);
void
_cdecl
textcolor
(int
newcolor);
void
_cdecl
textmode
(int
newmode);
int
_cdecl
wherex
(void);
int
_cdecl
wherey
(void);
void
_cdecl
window
(int
left,
int
top,
int
right,
int
bottom);
har
*_cdecl
cgets
(char
*str);
int
_cdecl
cprintf
(const
char
*format,
...);
int
_cdecl
cputs
(const
char
*str);
int
_cdecl
cscanf
(const
char
*format,
...);
int
_cdecl
getch
(void);
int
_cdecl
getche
(void);
char
*_cdecl
getpass
(const
char
*prompt);
int
_cdecl
kbhit
(void);
int
_cdecl
putch
(int
c);
int
_cdecl
ungetch
(int
ch);

『陸』 C語言中window(20,5,60,10)是什麼意思

windows()函數應該是一個外部函數,可能意思是構造一個窗口對象,窗口位置為左上角20,5,右下角(也可能是寬度、高度)是60,10。

『柒』 c語言windows編程函數

msdn光碟版或在線版