|
|
On 27.05.06 16:47:13, elmosquera@xxxxxxxxxxxxxx wrote:
> I need to write this function but I have a problem.
Yes, you're asking an OT question.
> int ConfigurationPage::StartButton_Show_Hide(BOOL bShowHide)
> {
> HWND hWnd;
> const WCHAR *j;
> hWnd = GetDlgItem(FindWindow(TASKBAR,NULL), ID_STARTBUTTON);
> if (hWnd == NULL)
> return 0;
>
> ShowWindow(hWnd, bShowHide ? SW_SHOW : SW_HIDE);
> UpdateWindow(hWnd);
>
> return 1;
> }
>
>
>
> pages.cpp:55: error: cannot convert `const char*' to `const WCHAR*' for
> argument
> `1' to `HWND__* FindWindowW(const WCHAR*, const WCHAR*)'
This tells you where and what is wrong with your code. TASKBAR is a
const char* but it should be a const WCHAR*. However this function
doesn't have anything to do with Qt, this is win32-api Code.
Andreas
--
You are always busy.
--
To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
"unsubscribe" in the subject or the body.
List archive and information: http://lists.trolltech.com/qt-interest/
|
|