Click here to Skip to main content
15,923,376 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Tree Control with Checkboxes .... Pin
AnkushChopra29-May-03 2:27
AnkushChopra29-May-03 2:27 
GeneralSafeArray Pin
vikramlinux28-May-03 23:31
vikramlinux28-May-03 23:31 
Generalhelp resolve access violation in ole32.lib Pin
safee ullah28-May-03 23:21
safee ullah28-May-03 23:21 
Generalproblem with a second DIALOGBAR Pin
aguest28-May-03 22:16
aguest28-May-03 22:16 
GeneralRe: problem with a second DIALOGBAR Pin
MemLeak29-May-03 5:46
MemLeak29-May-03 5:46 
GeneralRe: problem with a second DIALOGBAR Pin
aguest29-May-03 9:22
aguest29-May-03 9:22 
GeneralRe: problem with a second DIALOGBAR Pin
MemLeak29-May-03 9:49
MemLeak29-May-03 9:49 
QuestionHow to place ComboBox in DB grid Pin
DeveloperRK28-May-03 22:00
DeveloperRK28-May-03 22:00 
Hi,
I am using Microsoft DataControl Grid 6.0. While clicking on a cell, I have to display a combo Box in that cell.

The width and height of the combo box should be the same as the cell.In the grid ,the column and row size are resizable.But the combo Box placement and size both are not coming properly. I have used the following code.Help me.

CRect objRect;
float nRowHeight = m_DBgrid.GetRowHeight();
float nDataColLeft = objDataGridColumn.GetLeft();
float nRowTop = m_DBgrid.RowTop(nRowNo);
float nColWidth = objDataGridColumn.GetWidth();

CRect objRect1;
m_DBgrid.GetWindowRect(objRect1);
ScreenToClient(objRect1);

objRect.left = (int) (objRect1.left + 22);
objRect.top = (int) (objRect1.top + (-nRowTop) + (nRowNo + 2) * 2 ) ;
objRect.right = (int) (nColWidth + 22);
objRect.bottom = (int) (nRowHeight + objRect.top);

m_cCombo.ShowWindow(SW_SHOW);
m_cCombo.SetWindowPos(NULL, objRect.left, objRect.top, objRect.right, objRect.bottom, SWP_SHOWWINDOW);
m_cCombo.SetItemHeight(-1,(int)(nRowHeight - 1));
GeneralEntering an acount on a web-site, knowing the username & password Pin
dorutzu28-May-03 21:27
dorutzu28-May-03 21:27 
GeneralRe: Entering an acount on a web-site, knowing the username & password Pin
David Crow29-May-03 2:31
David Crow29-May-03 2:31 
GeneralRe: Entering an acount on a web-site, knowing the username & password Pin
dorutzu29-May-03 3:55
dorutzu29-May-03 3:55 
GeneralRe: Entering an acount on a web-site, knowing the username & password Pin
David Crow29-May-03 3:59
David Crow29-May-03 3:59 
GeneralRe: Entering an acount on a web-site, knowing the username & password Pin
basementman29-May-03 4:14
basementman29-May-03 4:14 
Generalexecution of SCP script thro VC++ Pin
BitsANDByte28-May-03 21:17
BitsANDByte28-May-03 21:17 
GeneralRe: execution of SCP script thro VC++ Pin
David Crow29-May-03 2:33
David Crow29-May-03 2:33 
GeneralRe: execution of SCP script thro VC++ Pin
BitsANDByte19-Jun-03 23:05
BitsANDByte19-Jun-03 23:05 
GeneralRe: execution of SCP script thro VC++ Pin
David Crow20-Jun-03 2:29
David Crow20-Jun-03 2:29 
GeneralRe: execution of SCP script thro VC++ Pin
BitsANDByte23-Jun-03 2:16
BitsANDByte23-Jun-03 2:16 
GeneralRe: execution of SCP script thro VC++ Pin
David Crow23-Jun-03 2:30
David Crow23-Jun-03 2:30 
GeneralRe: execution of SCP script thro VC++ Pin
Anonymous27-Jun-03 20:36
Anonymous27-Jun-03 20:36 
Generalhandel run methode Pin
Anonymous28-May-03 17:24
Anonymous28-May-03 17:24 
Generalvery long numbers Pin
Selevercin28-May-03 17:17
Selevercin28-May-03 17:17 
GeneralRe: very long numbers Pin
Michael Dunn28-May-03 17:59
sitebuilderMichael Dunn28-May-03 17:59 
GeneralRe: very long numbers Pin
Joaquín M López Muñoz28-May-03 22:13
Joaquín M López Muñoz28-May-03 22:13 
GeneralRe: very long numbers Pin
algol29-May-03 1:54
algol29-May-03 1:54 

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.