How could I get the file name or path of an image file displayed in a DataGridViewImageCell by clicking on the Cell...?
Rajesh Rajan Pankapattu
Posts
-
DataGridViewImageCell -
Drawing Data Flow DigramHow to treat Image files in drawing DFD, as Entity or as Data Store...?
-
Obtain class digramis there any tool in MS Visual Studio to obtain Class Digrams of the classes we have created in VC++..?
-
Extract RBG components of ImagesThank u, but all the Zip files downloaded are corrupted. they are .htm files renamed as .zip
-
[Message Deleted][Message Deleted]
-
Extract RBG components of ImagesHow can I extract the RGB components of Images with formats MNG,PNG,TIFF.Kindly tell me where I could find some sample codes
-
Visual Basic -Data access ,Data missingThe folowing is a Table and it's data of an MS Access Database Table: EXPENSES EDATE(Date) ETYPE(String) AMOUNT(Currency) --------------------------------------------- 01/01/07 Electricty 1000 21/01/07 Phone 1500 24/01/07 Repair 2000 05/02/07 Electricty 1000 23/02/07 Phone 1500 --------------------------------------------- Controls used on the VB form are... ------------------------------------- Data Control named Data1 DBGrid named db1, It's Data source set to Data1 DatePickers named DTPicker1 and DTPicker2 Command Button named CmdExp Running the code ---------------- DatePicker1 set to 01/01/07 and DatePicker2 set to 21/03/07 Following is the code executed when CmdExp is Clicked... -------------------------------------------------------------- Private Sub CmdExp_Click() Dim rs_exp As Recordset Set rs_exp = db.OpenRecordset("select * from EXPENSES where EDATE >= " & DTPicker1.Value & " and EDATE <=" & DTPicker2.Value & " ") Set Data1.Recordset = rs_exp End Sub The OutPut is ------------- 01/01/07 Electricty 1000 21/01/07 Phone 1500 05/02/07 Electricty 1000 Why does the two records with date 24/01/07 and 23/02/07 is not displayed even though they are between the two date ranges ?
-
MFC - CBitmap BitBltThe below given function displays nothing. Why...? How could I correct the problem..? void CImageProcessorView::OnDraw(CDC *theDC) { CBitmap Bitmap; Bitmap.CreateBitmap(100,100,1,24,NULL); BITMAP bm; Bitmap.GetObject(sizeof(BITMAP),&bm); BYTE * pData=(BYTE *)new BYTE[bm.bmHeight *bm.bmWidthBytes ]; // the 24 bit bitmap buffer for (int y=0;y < bm.bmHeight;y++){ for(int x=0;x < bm.bmWidth;x++){ pData[x*3+0+y*bm.bmWidthBytes]=0; pData[x*3+1+y*bm.bmWidthBytes]=0; pData[x*3+2+y*bm.bmWidthBytes]=255; // fill red in buffer } } Bitmap.SetBitmapBits(bm.bmHeight *bm.bmWidthBytes ,pData); CDC MemDC; MemDC.CreateCompatibleDC(theDC); CBitmap *pOldBitmap=MemDC.SelectObject(&Bitmap); theDC->BitBlt(0,0,bm.bmWidth,bm.bmHeight,&MemDC,0,0,SRCCOPY); MemDC.SelectObject(pOldBitmap); delete [] pData; } Rajesh Rajan Pankapattu
-
[Message Deleted][Message Deleted]