Click here to Skip to main content
16,016,501 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalsubclass all Pin
johny_d22-Aug-05 2:33
johny_d22-Aug-05 2:33 
GeneralRe: subclass all Pin
Blake Miller22-Aug-05 6:29
Blake Miller22-Aug-05 6:29 
Questiongraying/ungrayin not working? Pin
sayup22-Aug-05 1:42
sayup22-Aug-05 1:42 
AnswerRe: graying/ungrayin not working? Pin
Rage22-Aug-05 1:45
professionalRage22-Aug-05 1:45 
GeneralRe: graying/ungrayin not working? Pin
sayup22-Aug-05 3:59
sayup22-Aug-05 3:59 
GeneralRe: graying/ungrayin not working? Pin
Rage22-Aug-05 5:58
professionalRage22-Aug-05 5:58 
GeneralRe: graying/ungrayin not working? Pin
Bob Ciora22-Aug-05 6:53
Bob Ciora22-Aug-05 6:53 
GeneralProblem with Coordinates.... Pin
Ravi Sankar S22-Aug-05 0:36
Ravi Sankar S22-Aug-05 0:36 
Hello All,

I am having a List control in my [B]Form View[/B]. I want to create it dynamically by calling "CreateEx". My problem is when I am creating it is creating in different location than where I placed in the form. The code ( VC++ 6.0 / Windows 2000) is given below


DWORD dwStyle = LVS_REPORT | LVS_SINGLESEL | LVS_SHOWSELALWAYS | WS_CHILD | WS_VISIBLE | WS_GROUP | WS_TABSTOP;<br />
CRect rect;<br />
GetDlgItem (IDC_LIST1)->GetWindowRect(&rect);<br />
VERIFY(m_oTabList.CreateEx(WS_EX_CLIENTEDGE, _T("TestControl"), _T(""),	dwStyle, rect, this, IDC_LIST1, NULL));



GetWindowRect returns values {104, 400, 27, 498}. The Control is placed much below the location where i created.

Then I tried to use GetClientRect instead of GetWindowRect. At this time the value returned {0, 292, 0, 467} This time it draws at the top of the client area.

How to get the control location with respect to client area?

Thanks in Advance
Ravi
GeneralRe: Problem with Coordinates.... Pin
ThatsAlok22-Aug-05 1:00
ThatsAlok22-Aug-05 1:00 
GeneralRe: Problem with Coordinates.... Pin
PravinSingh22-Aug-05 3:21
PravinSingh22-Aug-05 3:21 
GeneralCOCreateInstance() call failed Pin
Prasannajit Dash22-Aug-05 0:14
Prasannajit Dash22-Aug-05 0:14 
GeneralRe: COCreateInstance() call failed Pin
toxcct22-Aug-05 0:24
toxcct22-Aug-05 0:24 
GeneralRe: COCreateInstance() call failed Pin
dharani22-Aug-05 0:25
dharani22-Aug-05 0:25 
GeneralRe: COCreateInstance() call failed Pin
MailtoGops22-Aug-05 19:08
MailtoGops22-Aug-05 19:08 
GeneralCobList Error deleting last element !!!- HELP ME Pin
dharani22-Aug-05 0:08
dharani22-Aug-05 0:08 
GeneralRe: CobList Error deleting last element !!!- HELP ME Pin
Jack Puppy22-Aug-05 0:57
Jack Puppy22-Aug-05 0:57 
GeneralRe: CobList Error deleting last element !!!- HELP ME Pin
dharani22-Aug-05 1:49
dharani22-Aug-05 1:49 
Generalreading a data file n a specific format Pin
a_david12321-Aug-05 23:41
a_david12321-Aug-05 23:41 
GeneralRe: reading a data file n a specific format Pin
toxcct22-Aug-05 0:04
toxcct22-Aug-05 0:04 
GeneralRe: reading a data file n a specific format Pin
David Crow22-Aug-05 5:01
David Crow22-Aug-05 5:01 
GeneralRe: reading a data file n a specific format Pin
toxcct22-Aug-05 5:57
toxcct22-Aug-05 5:57 
QuestionCan anyone help me ~please~~~!! Pin
ebinaini21-Aug-05 23:31
ebinaini21-Aug-05 23:31 
AnswerRe: Can anyone help me ~please~~~!! Pin
Aamir Butt21-Aug-05 23:46
Aamir Butt21-Aug-05 23:46 
AnswerRe: Can anyone help me ~please~~~!! Pin
toxcct22-Aug-05 0:13
toxcct22-Aug-05 0:13 
Generalcustom border Pin
Nishad S21-Aug-05 23:16
Nishad S21-Aug-05 23:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.