Click here to Skip to main content
15,910,877 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Design opinions/help needed Pin
Steve Messer11-Nov-03 18:05
Steve Messer11-Nov-03 18:05 
GeneralRe: Design opinions/help needed Pin
Antti Keskinen12-Nov-03 8:25
Antti Keskinen12-Nov-03 8:25 
GeneralRe: Design opinions/help needed Pin
Steve Messer12-Nov-03 12:07
Steve Messer12-Nov-03 12:07 
GeneralRe: Design opinions/help needed Pin
Antti Keskinen13-Nov-03 0:44
Antti Keskinen13-Nov-03 0:44 
GeneralRe: Design opinions/help needed Pin
Steve Messer13-Nov-03 1:35
Steve Messer13-Nov-03 1:35 
GeneralRe: Design opinions/help needed Pin
Antti Keskinen13-Nov-03 5:17
Antti Keskinen13-Nov-03 5:17 
GeneralRe: Design opinions/help needed Pin
Steve Messer13-Nov-03 7:18
Steve Messer13-Nov-03 7:18 
GeneralOnGridEndEdit and MessageBox Pin
adonisv10-Nov-03 12:48
adonisv10-Nov-03 12:48 
I'm throwing up a message box inside the OnGridEndEdit function of a CGridCtrl object. I want to inform the user that a duplicate name has been entered and a unique one must be supplied. However, after the message box is clicked on, the cursor highlights cells in the grid control and its a wierd side effect. Any suggestions?

Here is the code:

<br />
void RDialogForEditingCanalObjects::OnGridEndEdit(NMHDR *pNotifyStruct,LRESULT* pResult)<br />
{<br />
	bool bAcceptChange = false;<br />
	CGridCellBase* pRow = NULL;<br />
<br />
    NM_GRIDVIEW* pItem = (NM_GRIDVIEW*) pNotifyStruct;<br />
<br />
	if (this->m_eCanalObjectType != CO_SSFC) <br />
	{<br />
		<br />
		if (pItem->iRow == 1 && pItem->iColumn == 1)<br />
		{<br />
			<br />
			pRow = this->m_PrimaryGrid.GetCell(pItem->iRow,pItem->iColumn);<br />
			<br />
			if (pRow) <br />
			{<br />
				switch(this->m_pCanMan->IsNameUnique(pRow->GetText())) {<br />
				case 0:<br />
					Beep(999,189);<br />
					Beep(999,189);<br />
					MessageBox("Please enter a unique name for this object",<br />
					"Duplicate Naming Error!",MB_OK);<br />
					bAcceptChange = FALSE;<br />
					<br />
					break;<br />
				case 1:<br />
					bAcceptChange = TRUE;<br />
					break;<br />
				}	<br />
				<br />
			}<br />
		}<br />
	}   <br />
}<br />

GeneralFILETIME compilation error Pin
rmnowick10-Nov-03 12:31
rmnowick10-Nov-03 12:31 
GeneralRe: FILETIME compilation error Pin
Dave Bryant10-Nov-03 14:04
Dave Bryant10-Nov-03 14:04 
QuestionHow to change a toolbar bitmap image? Pin
ElizabethC10-Nov-03 11:08
ElizabethC10-Nov-03 11:08 
AnswerRe: How to change a toolbar bitmap image? Pin
Roger Allen11-Nov-03 0:40
Roger Allen11-Nov-03 0:40 
GeneralRe: How to change a toolbar bitmap image? Pin
ElizabethC12-Nov-03 6:47
ElizabethC12-Nov-03 6:47 
GeneralRe: How to change a toolbar bitmap image? Pin
Roger Allen12-Nov-03 6:49
Roger Allen12-Nov-03 6:49 
GeneralRe: How to change a toolbar bitmap image? Pin
ElizabethC12-Nov-03 10:49
ElizabethC12-Nov-03 10:49 
Generalopengl with visual c++ Pin
bik10-Nov-03 10:48
bik10-Nov-03 10:48 
GeneralRe: opengl with visual c++ Pin
Andrew Walker10-Nov-03 12:24
Andrew Walker10-Nov-03 12:24 
GeneralRe: opengl with visual c++ Pin
Orhun Birsoy10-Nov-03 13:07
Orhun Birsoy10-Nov-03 13:07 
Generalfile system in Mac Pin
pnpfriend10-Nov-03 10:31
pnpfriend10-Nov-03 10:31 
GeneralRe: file system in Mac Pin
Johnny ²10-Nov-03 11:24
Johnny ²10-Nov-03 11:24 
GeneralRe: file system in Mac Pin
pnpfriend12-Nov-03 4:00
pnpfriend12-Nov-03 4:00 
GeneralFile out Pin
Anonymous10-Nov-03 9:30
Anonymous10-Nov-03 9:30 
GeneralRe: File out Pin
Shay Harel10-Nov-03 9:45
Shay Harel10-Nov-03 9:45 
GeneralRe: File out Pin
Christian Graus10-Nov-03 10:29
protectorChristian Graus10-Nov-03 10:29 
GeneralRe: File out Pin
Anonymous11-Nov-03 2:27
Anonymous11-Nov-03 2:27 

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.