Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

Debugger branch: Placement of Windows

<< < (4/12) > >>

Jenna:

--- Quote from: oBFusCATed on January 19, 2012, 08:48:36 am ---So, what should we/I do to fix this problem? Use both functions?

--- End quote ---
I would try this:

--- Quote from: jens on January 19, 2012, 07:50:10 am ---You can call PlaceWindow with pdlCentre as second and true as third parameter to enforce placing the window (more or less) regardless the settings in "Settings -> View" .

--- End quote ---

But I think we should wait until ollydbg has tested, if it really works without additional tweaking inside the dialog-constructor

ollydbg:

--- Quote from: jens on January 19, 2012, 09:03:02 am ---But I think we should wait until ollydbg has tested, if it really works without additional tweaking inside the dialog-constructor

--- End quote ---
@jens: I got confused :(, adding "CentreOnParent()" in the constructor works fine here. (WinXP, Single Monitor)
What should I do right now?
Do I need to test the PlaceWindow() function? How to test it?


--- Quote ---If the Multimonitor placement checkbox  is unchecked and PlaceWindow() is not called with the third parameter set to true (defaults to false), it does nothing.
See sdk/globals.cpp:1017 .

--- End quote ---
The line 1017 is related to wxGTK, I have only Windows XP here.

oBFusCATed:
ollydbg: you have to test without CenterToParent and with PlaceWindow(..., pdlCentre, ...) instead.

ollydbg:

--- Quote from: oBFusCATed on January 19, 2012, 09:57:38 am ---ollydbg: you have to test without CenterToParent and with PlaceWindow(..., pdlCentre, ...) instead.

--- End quote ---
I just add one line in the end of constructor.

--- Code: ---PlaceWindow(this,pdlCentre,true);
--- End code ---
It works fine.

oBFusCATed:
Can you change the PlaceWindow line, where ShowModal is called (it is in main.cpp) and remove your PlaceWindow from the constructor?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version