Re: Wireless settings



Hi,schliz.
I am going through the same problem as you, Would you please
explain the prarmetes :0x00000001,0x000D000A in function
SendMessage(window,WM_LBUTTONDBLCLK,0x00000001,0x000D000A) and what is the
use of this function.

Thanks.

"schliz" wrote:

Dear Paul!

Thank you sooooooooo much!

I found it out due to your hint and I am sooo proud.

CWnd *pWndPrev, *pWndChild;
pWndPrev = 0;
pWndChild = 0;

// Determine if a window with the class name exists...
if (pWndPrev = CWnd::FindWindow(_T("HHTaskBar"),NULL))
{
// Get the child
pWndChild = pWndPrev->GetTopWindow();
HWND window = pWndChild->GetSafeHwnd();
::SendMessage(window,WM_LBUTTONDBLCLK,0x00000001,0x000D000A);
}

Than it pops up.

Thank you again.
The next problem is, that I would like to run the application in kiosk
mode after startup. So I have to run the TaskBar in the background. I
posted a different thread about that and as everytime you gave me an
answer.
Thank's again for your time! :-)
G


Paul G. Tobey [eMVP] schrieb:

Please read my message from a couple of cycles back. I'm not going to
refresh your memory every few days. You want to send a suitable message to
the window which will trigger the same operation as when the user does
something, double-clicks, say, the icon in the system tray. Capture the
message stream when you do this as a user, figure out how to identify the
window to which this message is being sent by your user action, then do the
same thing programmatically. Again, I doubt that anyone else has ever done
this, so no one is going to be able to guide you step-by-step. You're going
to have to do some real engineering.

Paul T.

"schliz" <schliz11@xxxxxxxxx> wrote in message
news:1165244522.832367.3230@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Dear Paul,

I think I've found it:

I think it is this function in: wzcui.c

//
---------------------------------------------------------------------------
// Dialog proc for the "advanced" button.
//
---------------------------------------------------------------------------

LRESULT CALLBACK
NetworkWLanAdvancedDlgProc(HWND hDlg, UINT message, WPARAM wParam,
LPARAM lParam)
{
static PWLAN_INFO s_pWLanInfo;
static NDIS_802_11_NETWORK_INFRASTRUCTURE s_mode;

BOOL fRetVal = TRUE;
NMHDR* header = NULL;

switch(message)
{
case WM_INITDIALOG:
{
// Get WLanInfo
s_pWLanInfo = (PWLAN_INFO) lParam;
if(!s_pWLanInfo)
{
fRetVal = FALSE;
break;
}

OnInitWZCAdvancedDialog(hDlg, s_pWLanInfo, &s_mode);

fRetVal = FALSE;
break;
}
case WM_NOTIFY:

header = (NMHDR*) lParam;
switch(header->code)
{
case LVN_ITEMCHANGED:

RefreshButtons(hDlg, s_pWLanInfo);

fRetVal = FALSE;
break;

case NM_RCLICK:

OnAdvListRClick(hDlg);

fRetVal = FALSE;
break;

case NM_CLICK:

if (GetKeyState(VK_MENU) < 0)
OnAdvListRClick(hDlg);

fRetVal = FALSE;
break;

case NM_DBLCLK:

OnAdvConfigureNetwork(hDlg, s_pWLanInfo);

fRetVal = FALSE;
break;
}

fRetVal = FALSE;
break;

case WM_COMMAND:

switch(LOWORD(wParam))
{
case IDM_WZC_CONFIGURE:

OnAdvConfigureNetwork(hDlg, s_pWLanInfo);
break;

case IDOK:

OnWZCAdvancedOK(hDlg, s_pWLanInfo);
break;

case IDCANCEL:

DestroyWindow(hDlg);
break;

case IDC_WZC_CHK_ENABLEWZC:

OnWZCEnableChk(hDlg, s_pWLanInfo);
fRetVal = FALSE;
break;

case IDC_WZC_PREF_UP:

MoveWZCNetwork(hDlg, s_pWLanInfo, TRUE);

fRetVal = FALSE;
break;

case IDC_WZC_PREF_DOWN:

MoveWZCNetwork(hDlg, s_pWLanInfo, FALSE);

fRetVal = FALSE;
break;

case IDM_WZC_DELETE:
case IDC_WZC_PREF_DELETE:

OnWZCPrefDelete(hDlg, s_pWLanInfo);

fRetVal = FALSE;
break;

case IDC_WZC_NETACCESS_COMBO:
{
int iSelection;

iSelection = SendMessage(s_pWLanInfo->hwndNetAccess, CB_GETCURSEL,
0, 0);
ASSERT(iSelection != CB_ERR);

// See what type of network connectivity the user
selected
if(iSelection == 2)
{
// Computer-to-computer
s_mode = Ndis802_11IBSS;
}
else if(iSelection == 1)
{
// infrastructure (access point) network
s_mode = Ndis802_11Infrastructure;
}
else if(iSelection == 0)\
{
// Any network (access point preferred)
s_mode = Ndis802_11AutoUnknown;
}

s_pWLanInfo->dwCtlFlags &= ~INTFCTL_CM_MASK;
s_pWLanInfo->dwCtlFlags |= (((DWORD) s_mode) &
INTFCTL_CM_MASK);

FillPreferredLV(s_pWLanInfo);
}
fRetVal = FALSE;
break;
}

fRetVal = FALSE;
break;

case WM_CLOSE:

DestroyWindow(hDlg);
fRetVal = FALSE;
break;

case WM_DESTROY:

PostQuitMessage(0);
fRetVal = FALSE;
break;


default:
fRetVal = FALSE;
break;
}

return fRetVal;
}

But I don't know how to call it as you said? Can you please give me a
hint?

Thank you.
G



.