Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "Основная";
Текущий архив: 2002.04.04;
Скачать: [xml.tar.bz2];

Вниз

Проблема с параметрами GetMessage   Найти похожие ветки 

 
AFROLOV   (2002-03-25 12:45) [0]

Уже не знаю что делать, вроде все перепробовал. Все равно выдается сообщение при компиляции "Types of formal and var parametrs must be identical". Похоже ему HWND не нравится.


var
tmpHwnd:HWND;
PRemMsgSt:^tagMSG;
..
begin
..
tmpHwnd:=ShareInf^.WND_OF_INTEREST;
getMem(PRemMsgSt,sizeOf(tagMsg));
GetMessage(PRemMsgSt,tmpHwnd,WM_KEYDOWN,WM_KEYDOWN);//Тут при компиляции выдается сообщение
freeMem(PRemMsgSt,sizeOf(tagMsg));
..
end;

Выдержка из Help"а Delphi
BOOL GetMessage(
LPMSG lpMsg,// address of structure with message
HWND hWnd,// handle of window
UINT wMsgFilterMin,// first message
UINT wMsgFilterMax// last message
);

Parameters
lpMsg
Points to an MSG structure that receives message information from the thread"s message queue.
hWnd
Identifies the window whose messages are to be retrieved. One value has a special meaning:
Value Meaning
NULL GetMessage retrieves messages for any window that belongs to the calling thread and thread messages posted to the calling thread via PostThreadMessage.
wMsgFilterMin
Specifies the integer value of the lowest message value to be retrieved.
wMsgFilterMax
Specifies the integer value of the highest message value to be retrieved.



Страницы: 1 вся ветка

Форум: "Основная";
Текущий архив: 2002.04.04;
Скачать: [xml.tar.bz2];

Наверх





Память: 0.44 MB
Время: 0.005 c
14-9602
VuDZ
2002-02-21 09:31
2002.04.04
Вопрос сезона


1-9497
NTdim
2002-03-21 12:22
2002.04.04
Как сделать Hint для каждой строки в ListBox ?


3-9410
Павел Козловский
2002-03-13 11:23
2002.04.04
Целостность таблиц


1-9437
bobr12
2002-03-22 16:19
2002.04.04
Создание help-файла


1-9468
FiGr_
2002-03-25 16:40
2002.04.04
Кнопки окна





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский