|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
I'm trying to set a dialog box to the top most window with SetWindowPos. According to the C++ docs it shows I need for parameters, the handle of the window, placement order handle, horz. pos, vert pos, width, height, and window positioning flag. When I try to do this is says SetWindowPos does not take 7 parameters. This is my line of code.
cReportDialog.SetWindowPos(NULL,HWND_TOPMOST,0,0,0 ,0,SWP_NOMOVE); Can anyone tell me what I'm doing wrong? |
|
#2
|
|||
|
|||
|
Okay, I found found an example of it's use, but it's not keeping the dialog as the top most window. Here's the new line of code.
SetWindowPos(cReportDialog,HWND_TOPMOST,0,0,0,0,SW P_NOMOVE); amdarden |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > SetWindowPos |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|