I am working on a Windows project with a simple dialog created using CreateWindowEx(), it contains several panels loaded with CreateDialog()to load the layout from the resource file. There are several controls on the child panels, including text boxes and buttons that I would like to use TAB to navigate, but all I get is a “Windows Bing” telling me that the key does nothing. My message loop looks like this:
CreateWindowEx()
CreateDialog()
while( PeekMessage(&msg, 0, 0, 0, PM_REMOVE) ) { if( !IsDialogMessage(0, &msg) ) { TranslateMessage(&msg); DispatchMessage(&msg); } }
And each control window contains the WS_TABSTOP defined in the style, as well as the owner panel with WS_EX_CONTROLPARENT.
Is there anything else I need to do to make the tab key?
Thanks J
:
http://support.microsoft.com/kb/71450 ( IsDialogMessage() )
- , IsDialogMessage Tab. , .
WS_TABSTOP WS_TABSTOP , , TAB SHIFT + TAB.
TAB SHIFT + TAB, , , . WM_GETDLGCODE, DLGC_WANTTAB, . GetNextDlgTabItem , , , WS_TABSTOP. , , , , , . , .
WS_TABSTOP WS_EX_CONTROLPARENT, .
GetNextDlgTabItem , WS_TABSTOP. , WS_TABSTOP, .
: MSDN.
if( !IsDialogMessage(0, &msg) )
The first argument must not be NULL; it must be a dialog handle. It is painful here, of course.
Source: https://habr.com/ru/post/1766950/More articles:Using Pip, how do I get to update non-updated packages? - pythonSQL 2000/2005/2008 - Find a unique constraint name for a column - sqlInstall R packages from binary files in Ubuntu Lucid - rhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1766948/how-to-add-attachments-to-mailitem-using-outlook-late-binding&usg=ALkJrhitsIUDVvqr3ht08a0SK-ImfghhkgWhat is a good way to handle slf4j in a web application deployed in Glassfish 3.0.1? - javacellForRowAtIndexPath always returns zero - iphoneSequential Date String - sqlС# Проблема аутентификации webservice между двумя веб-приложениями - c#Deploying ASP.Net MVC on IIS6, why am I getting 404 after enabling group mapping? - asp.net-mvcWhat are the internal processes for compiling C? - cAll Articles