MCPcopy Create free account
hub / github.com/davisking/dlib / get_pos

Method get_pos

dlib/gui_core/gui_core_kernel_1.cpp:1948–1967  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1946// ----------------------------------------------------------------------------------------
1947
1948 void base_window::
1949 get_pos (
1950 long& x_,
1951 long& y_
1952 )
1953 {
1954 auto_mutex M(wm);
1955 x_ = 0;
1956 y_ = 0;
1957 if (has_been_destroyed == true)
1958 return;
1959
1960 POINT p;
1961 p.x = 0;
1962 p.y = 0;
1963 ClientToScreen(hwnd,&p);
1964
1965 x_ = p.x;
1966 y_ = p.y;
1967 }
1968
1969// ----------------------------------------------------------------------------------------
1970

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected