Total Commander Forum Index Total Commander
Форум поддержки пользователей Total Commander
Сайты: Все о Total Commander | Totalcmd.net | Ghisler.com | RU.TCKB
 
 RulesRules   SearchSearch   FAQFAQ   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Single Post  Topic: Изменить размеры листера 
Author Message
VadiMGP



PostPosted: Mon Mar 09, 2009 03:47    Post subject: Reply with quote

Worros wrote:
То есть только перекраивать код? Просто заменить MoveWindow на какой нибудь SetWindowPos или в таком духе не вариант?
Ну поэкспериментировать можно, вдруг повезет, но я бы не стал.
Между прочим, в MSDN к MoveWindow хорошая ремарка есть
Quote:
If the bRepaint parameter is TRUE, the system sends the WM_PAINT message to the window procedure immediately after moving the window (that is, the MoveWindow function calls the UpdateWindow function). If bRepaint is FALSE, the application must explicitly invalidate or redraw any parts of the window and parent window that need redrawing.

MoveWindow sends the WM_WINDOWPOSCHANGING, WM_WINDOWPOSCHANGED, WM_MOVE, WM_SIZE, and WM_NCCALCSIZE messages to the window.
Значит главный поток должен быть готов обслужить все эти сообщения. Сильно подозреваю, что при SetWindowPos будет та же песня.
View user's profile Send private message


Powered by phpBB © 2001, 2005 phpBB Group