如何在 类 中定义 有含参数的构造函数 的 对象,且 对象的参数需处理后传入

问题相关代码

在WinClass.h中

class Window
{
  //......
public:
  Window();
  Direct direct;
private:
  HWND hWnd;
  int height;
  int width;
}

Window::Window()
  :
  direct(hWnd, width, height)  //问题出在此处,希望能在hWnd赋值后,再进行初始化
{
  RECT wr;
  wr.left = ......;
  wr.right = ......;
  wr.top = ......;
  wr.bottom = ......;

  hWnd = CreateWindow(…wr…);  //此处要把wr传入
};

在DirectClass.h中

class Direct
{
  friend class Window;
public:
  Direct(HWND, int, int);
private:
  HWND hWnd;  //实际上是想把参数传递到DirectClass内部,实在不行就类中类吧~
  int width;
  int height;
}

Direct::Direct(HWND hWnd, int width, int height)
  :
  hWnd(hWnd),
  width(width),
  height(height)
{}
我想要达到的结果

Window类 中的hWnd(处理后)、widthheight传入Direct

WindowDirect
hWndhWnd(CreateWindow(wr))hWnd
height不处理width
height不处理height